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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" 5 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h"
6 6
7 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC ontextOrWebGL2RenderingContext.h" 7 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC ontextOrWebGL2RenderingContext.h"
8 #include "core/frame/ImageBitmap.h" 8 #include "core/frame/ImageBitmap.h"
9 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
10 #include "core/workers/WorkerGlobalScope.h" 10 #include "core/workers/WorkerGlobalScope.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 #endif 244 #endif
245 } 245 }
246 246
247 bool OffscreenCanvasRenderingContext2D::isContextLost() const { 247 bool OffscreenCanvasRenderingContext2D::isContextLost() const {
248 return false; 248 return false;
249 } 249 }
250 250
251 bool OffscreenCanvasRenderingContext2D::isPaintable() const { 251 bool OffscreenCanvasRenderingContext2D::isPaintable() const {
252 return this->imageBuffer(); 252 return this->imageBuffer();
253 } 253 }
254
255 CanvasRenderingContext* OffscreenCanvasRenderingContext2D::renderingContext()
256 const {
257 return (CanvasRenderingContext*)(this);
Justin Novosad 2017/03/27 19:43:48 static_cast
zakerinasab 2017/03/30 17:56:11 Done.
254 } 258 }
259 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698