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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp

Issue 2797213002: Fix BaseRenderingContext2D create/put/get-ImageData() for color managed canvas (Closed)
Patch Set: Layout test added 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/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
index a522c1d54fc4b7f6ca071fda2ca640612bd8cc22..2b99a45730a9b628a3be97294b9f8a2c9fab944a 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
@@ -251,4 +251,10 @@ bool OffscreenCanvasRenderingContext2D::isContextLost() const {
bool OffscreenCanvasRenderingContext2D::isPaintable() const {
return this->imageBuffer();
}
+
+CanvasRenderingContext* OffscreenCanvasRenderingContext2D::renderingContext()
+ const {
+ return static_cast<CanvasRenderingContext*>(
+ const_cast<OffscreenCanvasRenderingContext2D*>(this));
+}
}

Powered by Google App Engine
This is Rietveld 408576698