mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 07:02:25 +00:00
!16966 ArkUIX在IOS平台使用canvas组件绘制异常
Merge pull request !16966 from redermens/release_500
This commit is contained in:
commit
a955ccf791
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user