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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.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/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
index f5dc56f1ab7224d176d08aa43a23f8c1d9330bfc..ea16472883782bd6f5f7868fc824beda89e3e311 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
@@ -105,6 +105,11 @@ void OffscreenCanvasRenderingContext2D::reset() {
BaseRenderingContext2D::reset();
}
+ColorBehavior OffscreenCanvasRenderingContext2D::drawImageColorBehavior()
+ const {
+ return CanvasRenderingContext::colorBehaviorForMediaDrawnToCanvas();
+}
+
ImageBuffer* OffscreenCanvasRenderingContext2D::imageBuffer() const {
if (!m_imageBuffer) {
IntSize surfaceSize(width(), height());

Powered by Google App Engine
This is Rietveld 408576698