From 96709fb96deee90c7eae68b679a80de7281e964d Mon Sep 17 00:00:00 2001 From: caocan <1532643766@qq.com> Date: Mon, 27 Dec 2021 17:10:41 +0800 Subject: [PATCH] fixed ceffda3 from https://gitee.com/cc520bf/third_party_flutter/pulls/33 fix camera can't preview Signed-off-by: caocan <1532643766@qq.com> Change-Id: I21292819d29a7496990e545da272bb44360a64e2 --- engine/flutter/shell/platform/ohos/ohos_surface_software.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/flutter/shell/platform/ohos/ohos_surface_software.cc b/engine/flutter/shell/platform/ohos/ohos_surface_software.cc index 694eb0ea..c52cf9cf 100644 --- a/engine/flutter/shell/platform/ohos/ohos_surface_software.cc +++ b/engine/flutter/shell/platform/ohos/ohos_surface_software.cc @@ -156,6 +156,7 @@ bool OhosSurfaceSoftware::PresentBackingStore( return false; } + memset(surfaceBuffer->GetVirAddr(), 0, surfaceBuffer->GetSize()); SurfaceDrawBuffer(requestConfig, surfaceBuffer, pixmap); SurfaceFlushBuffer(surfaceBuffer); -- Gitee