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

Side by Side Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp

Issue 2797213002: Fix BaseRenderingContext2D create/put/get-ImageData() for color managed canvas (Closed)
Patch Set: Rebaseline 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 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/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/frame/ImageBitmap.h" 9 #include "core/frame/ImageBitmap.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 239
240 bool OffscreenCanvasRenderingContext2D::isContextLost() const { 240 bool OffscreenCanvasRenderingContext2D::isContextLost() const {
241 return false; 241 return false;
242 } 242 }
243 243
244 bool OffscreenCanvasRenderingContext2D::IsPaintable() const { 244 bool OffscreenCanvasRenderingContext2D::IsPaintable() const {
245 return this->GetImageBuffer(); 245 return this->GetImageBuffer();
246 } 246 }
247 247
248 CanvasColorSpace OffscreenCanvasRenderingContext2D::ColorSpace() const {
249 return color_params().color_space();
250 }
251
252 String OffscreenCanvasRenderingContext2D::ColorSpaceAsString() const {
253 return CanvasRenderingContext::ColorSpaceAsString();
254 }
255
256 CanvasPixelFormat OffscreenCanvasRenderingContext2D::PixelFormat() const {
257 return color_params().pixel_format();
258 }
259
248 bool OffscreenCanvasRenderingContext2D::IsAccelerated() const { 260 bool OffscreenCanvasRenderingContext2D::IsAccelerated() const {
249 return image_buffer_ && image_buffer_->IsAccelerated(); 261 return image_buffer_ && image_buffer_->IsAccelerated();
250 } 262 }
251 } 263 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698