diff --git a/engine/flutter/shell/platform/ohos/ohos_surface_software.cc b/engine/flutter/shell/platform/ohos/ohos_surface_software.cc index 15d41ffa09bb61d83e3cb7c4c4cc7fc54ba23060..e883ae8350ddfaff85d5148af433f7a1d27493cb 100644 --- a/engine/flutter/shell/platform/ohos/ohos_surface_software.cc +++ b/engine/flutter/shell/platform/ohos/ohos_surface_software.cc @@ -130,7 +130,7 @@ bool OhosSurfaceSoftware::PresentBackingStore( } OHOS::BufferRequestConfig requestConfig = { - .width = requestConfig_.width, + .width = 1088, .height = requestConfig_.height, .strideAlignment = 8, .format = PIXEL_FMT_RGBA_8888, @@ -165,6 +165,8 @@ bool OhosSurfaceSoftware::PresentBackingStore( std::unique_ptr canvas = SkCanvas::MakeRasterDirect( native_image_info, surfaceBuffer->GetVirAddr(), surfaceBuffer->GetSize() / requestConfig.height); + int rowBytes = surfaceBuffer->GetSize() / requestConfig.height; + FML_LOG(ERROR) << "OhosSurfaceSoftware rowBytes: " << rowBytes; if (canvas) { SkBitmap bitmap;