!192 图层跳过合成逻辑

Merge pull request !192 from lastking/master
This commit is contained in:
openharmony_ci 2022-01-12 14:13:33 +00:00 committed by Gitee
commit cda3df9c5d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -76,6 +76,11 @@ void RSHardwareProcessor::ProcessSurface(RSSurfaceRenderNode &node)
ROSEN_LOGE("RSHardwareProcessor::ProcessSurface output is nullptr");
return;
}
if (node.GetRenderProperties().GetBoundsPositionX() >= curScreenInfo_.GetScreenWidth() ||
node.GetRenderProperties().GetBoundsPositionY() >= curScreenInfo_.GetScreenHeight()) {
ROSEN_LOGE("RsDebug RSHardwareProcessor::ProcessSurface this node:%llu no need to composite", node.GetId());
return;
}
OHOS::sptr<SurfaceBuffer> cbuffer;
RSProcessor::SpecialTask task = [] () -> void{};
bool ret = ConsumeAndUpdateBuffer(node, task, cbuffer);