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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h

Issue 2625873005: Add an heuristic for promoting canvases to GPU acceleration (Closed)
Patch Set: webgl test fix Created 3 years, 11 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
Index: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
index 529f705b6fd2266d522860b6ad5bd86665017518..c10eb1dc36c0f464aa34faba8df9422ead8f1a2f 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
@@ -242,6 +242,8 @@ class MODULES_EXPORT BaseRenderingContext2D : public GarbageCollectedMixin,
virtual ColorBehavior drawImageColorBehavior() const = 0;
+ virtual void willDrawImage(CanvasImageSource*) const {}
+
void restoreMatrixClipStack(SkCanvas*) const;
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698