Index: sky/engine/core/painting/Canvas.cpp |
diff --git a/sky/engine/core/painting/Canvas.cpp b/sky/engine/core/painting/Canvas.cpp |
index c3bde989568332920e278f6431bb33fcd1dfab88..0854cdba98501275b815342eb0268a8fb69f8890 100644 |
--- a/sky/engine/core/painting/Canvas.cpp |
+++ b/sky/engine/core/painting/Canvas.cpp |
@@ -111,6 +111,15 @@ void Canvas::clipRect(const Vector<float>& rect) |
m_canvas->clipRect(toSkRect(rect)); |
} |
+void Canvas::drawPicture(Picture* picture) |
+{ |
+ if (!m_canvas) |
+ return; |
+ ASSERT(picture); |
+ ASSERT(m_displayList->isRecording()); |
+ m_canvas->drawPicture(picture->displayList()->picture()); |
+} |
+ |
void Canvas::drawPaint(Paint* paint) |
{ |
if (!m_canvas) |