Index: Source/platform/graphics/GraphicsContextRecorder.cpp |
diff --git a/Source/platform/graphics/GraphicsContextRecorder.cpp b/Source/platform/graphics/GraphicsContextRecorder.cpp |
index 02615de435184b81902e47fee8b0ae3087c9a66d..e22ae878e73537d03ebf5f540ce259ffa3311c52 100644 |
--- a/Source/platform/graphics/GraphicsContextRecorder.cpp |
+++ b/Source/platform/graphics/GraphicsContextRecorder.cpp |
@@ -202,11 +202,6 @@ public: |
params->setObject("paint", objectForSkPaint(paint)); |
} |
- void drawPicture(SkPicture& picture) OVERRIDE |
- { |
- addItemWithParams("drawPicture")->setObject("picture", objectForSkPicture(picture)); |
- } |
- |
void drawRect(const SkRect& rect, const SkPaint& paint) OVERRIDE |
{ |
RefPtr<JSONObject> params = addItemWithParams("drawRect"); |
@@ -397,6 +392,11 @@ public: |
params->setString("op", regionOpName(op)); |
} |
+ void onDrawPicture(const SkPicture* picture) OVERRIDE |
+ { |
+ addItemWithParams("drawPicture")->setObject("picture", objectForSkPicture(*picture)); |
+ } |
+ |
void didSetMatrix(const SkMatrix& matrix) OVERRIDE |
{ |
RefPtr<JSONObject> params = addItemWithParams("setMatrix"); |