diff --git a/rosen/modules/render_service_base/src/pipeline/rs_canvas_drawing_render_node.cpp b/rosen/modules/render_service_base/src/pipeline/rs_canvas_drawing_render_node.cpp index f82f47801e..bd983d7fa1 100644 --- a/rosen/modules/render_service_base/src/pipeline/rs_canvas_drawing_render_node.cpp +++ b/rosen/modules/render_service_base/src/pipeline/rs_canvas_drawing_render_node.cpp @@ -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