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

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

Issue 2708403003: Implement canvas color space IDL format for 2D canvas (Closed)
Patch Set: Fixing layout test failures Created 3 years, 10 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 882496e8254e4eb2432b4663661983de312b0dbd..b0e83170c6d953edb1f86a84d0eb6447724e94d6 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
@@ -967,9 +967,11 @@ WebLayer* CanvasRenderingContext2D::platformLayer() const {
}
void CanvasRenderingContext2D::getContextAttributes(
- Canvas2DContextAttributes& attrs) const {
- attrs.setAlpha(creationAttributes().alpha());
- attrs.setColorSpace(colorSpaceAsString());
+ CanvasRenderingContext2DSettings& settings) const {
+ settings.setAlpha(creationAttributes().alpha());
+ settings.setColorSpace(colorSpaceAsString());
+ settings.setPixelFormat(pixelFormatAsString());
+ settings.setLinearPixelMath(linearPixelMath());
}
void CanvasRenderingContext2D::drawFocusIfNeeded(Element* element) {

Powered by Google App Engine
This is Rietveld 408576698