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

Unified Diff: Source/platform/graphics/LoggingCanvas.cpp

Issue 454993002: preemptive add new virtual for onDrawPicture (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: don't add OVERRIDE for cross-module subclassing 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 | « Source/platform/graphics/LoggingCanvas.h ('k') | Source/platform/graphics/ProfilingCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/LoggingCanvas.cpp
diff --git a/Source/platform/graphics/LoggingCanvas.cpp b/Source/platform/graphics/LoggingCanvas.cpp
index 511d4b58c0fa4649ca6c7c7ee0cbd044d81ee655..c8f1fe962617e3e1bebb54f28f8780a5180d6384 100644
--- a/Source/platform/graphics/LoggingCanvas.cpp
+++ b/Source/platform/graphics/LoggingCanvas.cpp
@@ -355,6 +355,13 @@ void LoggingCanvas::onDrawPicture(const SkPicture* picture)
this->SkCanvas::onDrawPicture(picture);
}
+void LoggingCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint)
+{
+ AutoLogger logger(this);
+ logger.logItemWithParams("drawPicture")->setObject("picture", objectForSkPicture(*picture));
+ this->SkCanvas::onDrawPicture(picture, matrix, paint);
+}
+
void LoggingCanvas::didSetMatrix(const SkMatrix& matrix)
{
AutoLogger logger(this);
« no previous file with comments | « Source/platform/graphics/LoggingCanvas.h ('k') | Source/platform/graphics/ProfilingCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698