!16966 ArkUIX在IOS平台使用canvas组件绘制异常

Merge pull request !16966 from redermens/release_500
This commit is contained in:
openharmony_ci 2024-11-13 07:55:58 +00:00 committed by Gitee
commit a955ccf791
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -238,6 +238,9 @@ bool RSCanvasDrawingRenderNode::ResetSurface(int width, int height, RSPaintFilte
Drawing::ImageInfo { width, height, Drawing::COLORTYPE_RGBA_8888, Drawing::ALPHATYPE_PREMUL };
#if (defined(RS_ENABLE_GL) || defined(RS_ENABLE_VK))
#if (defined(ROSEN_IOS))
surface_ = Drawing::Surface::MakeRaster(info);
#else
auto gpuContext = canvas.GetGPUContext();
isGpuSurface_ = true;
if (gpuContext == nullptr) {
@ -260,6 +263,7 @@ bool RSCanvasDrawingRenderNode::ResetSurface(int width, int height, RSPaintFilte
return true;
}
}
#endif
#else
surface_ = Drawing::Surface::MakeRaster(info);
#endif