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

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

Issue 2771813003: Prepare ImageData for color managed BaseRenderingContext2D::create/put/get-ImageData (Closed)
Patch Set: Unit test added Created 3 years, 9 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..37a07b5ba8b11fb50874e2d7df24de2611392df0 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
@@ -251,4 +251,9 @@ bool OffscreenCanvasRenderingContext2D::isContextLost() const {
bool OffscreenCanvasRenderingContext2D::isPaintable() const {
return this->imageBuffer();
}
+
+CanvasRenderingContext* OffscreenCanvasRenderingContext2D::renderingContext()
+ const {
+ return (CanvasRenderingContext*)(this);
Justin Novosad 2017/03/27 19:43:48 static_cast
zakerinasab 2017/03/30 17:56:11 Done.
+}
}

Powered by Google App Engine
This is Rietveld 408576698