Index: sky/engine/core/painting/Canvas.cpp |
diff --git a/sky/engine/core/painting/Canvas.cpp b/sky/engine/core/painting/Canvas.cpp |
index 04fbeb22552ef7b16adc3dd661d74ee94ad0fc65..4bf9d3473e064ec92fb040f9140ea4f25139b520 100644 |
--- a/sky/engine/core/painting/Canvas.cpp |
+++ b/sky/engine/core/painting/Canvas.cpp |
@@ -145,6 +145,16 @@ void Canvas::drawCircle(float x, float y, float radius, const Paint* paint) |
m_canvas->drawCircle(x, y, radius, paint->paint()); |
} |
+void Canvas::drawPath(const CanvasPath* path, const Paint* paint) |
+{ |
+ if (!m_canvas) |
+ return; |
+ ASSERT(path); |
+ ASSERT(paint); |
+ ASSERT(m_displayList->isRecording()); |
+ m_canvas->drawPath(path->path(), paint->paint()); |
+} |
+ |
PassRefPtr<DisplayList> Canvas::finishRecording() |
{ |
if (!isRecording()) |