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