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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp

Issue 2572873002: Add ColorBehavior plumbing for 2D canvas drawImage (Closed)
Patch Set: Created 4 years 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/CanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
index 2fbf8bbd1fd4e90232942f9620e8d22e1ac56ee9..2a45c7b7c6e4f89db4cd4407442de0680b462e20 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
@@ -270,6 +270,10 @@ void CanvasRenderingContext2D::dispatchContextRestoredEvent(TimerBase*) {
}
}
+ColorBehavior CanvasRenderingContext2D::drawImageColorBehavior() const {
+ return CanvasRenderingContext::colorBehaviorForMediaDrawnToCanvas();
+}
+
void CanvasRenderingContext2D::reset() {
// This is a multiple inherritance bootstrap
BaseRenderingContext2D::reset();

Powered by Google App Engine
This is Rietveld 408576698