mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 01:00:50 +00:00
commit
a29d1735fb
@ -876,6 +876,13 @@ void RSRenderServiceConnection::TakeSurfaceCapture(NodeId id, sptr<RSISurfaceCap
|
||||
// When the isSync flag in captureConfig is true, UI capture processes commands before capture.
|
||||
// When the isSync flag in captureConfig is false, UI capture will check null node independently.
|
||||
// Therefore, a null node is valid for UI capture.
|
||||
if (!selfCapture) {
|
||||
RS_LOGE("RSRenderServiceConnection::TakeSurfaceCapture uicapture failed, nodeId:[%{public}" PRIu64
|
||||
"], selfCapture: %{public}u",
|
||||
id, selfCapture);
|
||||
callback->OnSurfaceCapture(id, nullptr);
|
||||
return;
|
||||
}
|
||||
if (RSUniRenderJudgement::IsUniRender()) {
|
||||
TakeSurfaceCaptureForUiParallel(id, callback, captureConfig);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user