Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: skia/ext/benchmarking_canvas.cc

Issue 454143003: preemptively add new override for onDrawPicture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/benchmarking_canvas.cc
diff --git a/skia/ext/benchmarking_canvas.cc b/skia/ext/benchmarking_canvas.cc
index b0a3082c5ed72afcd1a9f4db21ab88d7469e9147..c5f211dda55f9c7a6b59009dc491dd1506dd8a78 100644
--- a/skia/ext/benchmarking_canvas.cc
+++ b/skia/ext/benchmarking_canvas.cc
@@ -182,10 +182,16 @@ protected:
}
virtual void onDrawPicture(const SkPicture* picture) OVERRIDE {
+ AutoStamper stamper(this);
+ SkProxyCanvas::onDrawPicture(picture);
+ }
+
+ virtual void onDrawPicture(const SkPicture* picture, const SkMatrix* matrix,
+ const SkPaint* paint) OVERRIDE {
AutoStamper stamper(this);
- SkProxyCanvas::onDrawPicture(picture);
+ SkProxyCanvas::onDrawPicture(picture, matrix, paint);
}
-
+
private:
typedef base::hash_map<size_t, base::TimeDelta> TimingsMap;
TimingsMap timings_map_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698