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

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

Issue 2825183002: Plumb CanvasColorParams to canvas image classes (Closed)
Patch Set: Require both runtime flags Created 3 years, 8 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/CanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
index 1395cf4466edb865bdb197875186242b5b290bbe..921e15925c0de5f79872afe4dc2c5a0e899f3aac 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
@@ -987,7 +987,7 @@ void CanvasRenderingContext2D::getContextAttributes(
settings.setAlpha(CreationAttributes().alpha());
settings.setColorSpace(ColorSpaceAsString());
settings.setPixelFormat(PixelFormatAsString());
- settings.setLinearPixelMath(LinearPixelMath());
+ settings.setLinearPixelMath(color_params().LinearPixelMath());
}
void CanvasRenderingContext2D::drawFocusIfNeeded(Element* element) {

Powered by Google App Engine
This is Rietveld 408576698