| 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/UnionTypesModules.h" | 7 #include "bindings/modules/v8/UnionTypesModules.h" |
| 8 #include "core/frame/ImageBitmap.h" | 8 #include "core/frame/ImageBitmap.h" |
| 9 #include "platform/NotImplemented.h" | |
| 10 #include "platform/graphics/ImageBuffer.h" | 9 #include "platform/graphics/ImageBuffer.h" |
| 11 #include "platform/graphics/StaticBitmapImage.h" | 10 #include "platform/graphics/StaticBitmapImage.h" |
| 12 #include "wtf/Assertions.h" | 11 #include "wtf/Assertions.h" |
| 13 | 12 |
| 14 #define UNIMPLEMENTED ASSERT_NOT_REACHED | 13 #define UNIMPLEMENTED ASSERT_NOT_REACHED |
| 15 | 14 |
| 16 namespace blink { | 15 namespace blink { |
| 17 | 16 |
| 18 OffscreenCanvasRenderingContext2D::~OffscreenCanvasRenderingContext2D() | 17 OffscreenCanvasRenderingContext2D::~OffscreenCanvasRenderingContext2D() |
| 19 { | 18 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 return m_originClean; | 36 return m_originClean; |
| 38 } | 37 } |
| 39 | 38 |
| 40 void OffscreenCanvasRenderingContext2D::setOriginTainted() | 39 void OffscreenCanvasRenderingContext2D::setOriginTainted() |
| 41 { | 40 { |
| 42 m_originClean = false; | 41 m_originClean = false; |
| 43 } | 42 } |
| 44 | 43 |
| 45 bool OffscreenCanvasRenderingContext2D::wouldTaintOrigin(CanvasImageSource* sour
ce) | 44 bool OffscreenCanvasRenderingContext2D::wouldTaintOrigin(CanvasImageSource* sour
ce) |
| 46 { | 45 { |
| 47 notImplemented(); | 46 NOTIMPLEMENTED(); |
| 48 return false; | 47 return false; |
| 49 } | 48 } |
| 50 | 49 |
| 51 int OffscreenCanvasRenderingContext2D::width() const | 50 int OffscreenCanvasRenderingContext2D::width() const |
| 52 { | 51 { |
| 53 return getOffscreenCanvas()->width(); | 52 return getOffscreenCanvas()->width(); |
| 54 } | 53 } |
| 55 | 54 |
| 56 int OffscreenCanvasRenderingContext2D::height() const | 55 int OffscreenCanvasRenderingContext2D::height() const |
| 57 { | 56 { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 141 } |
| 143 #endif | 142 #endif |
| 144 } | 143 } |
| 145 | 144 |
| 146 bool OffscreenCanvasRenderingContext2D::isContextLost() const | 145 bool OffscreenCanvasRenderingContext2D::isContextLost() const |
| 147 { | 146 { |
| 148 return false; | 147 return false; |
| 149 } | 148 } |
| 150 | 149 |
| 151 } | 150 } |
| OLD | NEW |