| OLD | NEW |
| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 249 } |
| 250 | 250 |
| 251 bool OffscreenCanvasRenderingContext2D::isContextLost() const { | 251 bool OffscreenCanvasRenderingContext2D::isContextLost() const { |
| 252 return false; | 252 return false; |
| 253 } | 253 } |
| 254 | 254 |
| 255 bool OffscreenCanvasRenderingContext2D::IsPaintable() const { | 255 bool OffscreenCanvasRenderingContext2D::IsPaintable() const { |
| 256 return this->GetImageBuffer(); | 256 return this->GetImageBuffer(); |
| 257 } | 257 } |
| 258 | 258 |
| 259 CanvasColorSpace OffscreenCanvasRenderingContext2D::ColorSpace() const { |
| 260 return CanvasRenderingContext::ColorSpace(); |
| 261 } |
| 262 |
| 263 String OffscreenCanvasRenderingContext2D::ColorSpaceAsString() const { |
| 264 return CanvasRenderingContext::ColorSpaceAsString(); |
| 265 } |
| 266 |
| 267 CanvasPixelFormat OffscreenCanvasRenderingContext2D::PixelFormat() const { |
| 268 return CanvasRenderingContext::PixelFormat(); |
| 269 } |
| 270 |
| 259 bool OffscreenCanvasRenderingContext2D::IsAccelerated() const { | 271 bool OffscreenCanvasRenderingContext2D::IsAccelerated() const { |
| 260 return image_buffer_ && image_buffer_->IsAccelerated(); | 272 return image_buffer_ && image_buffer_->IsAccelerated(); |
| 261 } | 273 } |
| 262 } | 274 } |
| OLD | NEW |