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) { |