Index: skia/ext/benchmarking_canvas.cc |
diff --git a/skia/ext/benchmarking_canvas.cc b/skia/ext/benchmarking_canvas.cc |
index f765cd175598e92b7ca0868e9110a4f4978d28f6..fd5e574696f27ca46a8e74033380e7f19a7d097d 100644 |
--- a/skia/ext/benchmarking_canvas.cc |
+++ b/skia/ext/benchmarking_canvas.cc |
@@ -114,11 +114,6 @@ public: |
SkProxyCanvas::drawSprite(bitmap, left, top, paint); |
} |
- virtual void drawPicture(SkPicture& picture) OVERRIDE { |
- AutoStamper stamper(this); |
- SkProxyCanvas::drawPicture(picture); |
- } |
- |
virtual void drawVertices(VertexMode vmode, int vertexCount, |
const SkPoint vertices[], const SkPoint texs[], |
const SkColor colors[], SkXfermode* xmode, |
@@ -186,6 +181,11 @@ protected: |
SkProxyCanvas::onClipRegion(region, op); |
} |
+ virtual void onDrawPicture(const SkPicture* picture) OVERRIDE { |
+ AutoStamper stamper(this); |
+ SkProxyCanvas::onDrawPicture(picture); |
+ } |
+ |
private: |
typedef base::hash_map<size_t, base::TimeDelta> TimingsMap; |
TimingsMap timings_map_; |