| Index: third_party/WebKit/Source/core/html/ImageData.h
|
| diff --git a/third_party/WebKit/Source/core/html/ImageData.h b/third_party/WebKit/Source/core/html/ImageData.h
|
| index 4cb126baa46b68d815be45dfa5bae9e8e78868f9..f2f46714aa9346dcb5db1f0699db2c9d31ba22e6 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageData.h
|
| +++ b/third_party/WebKit/Source/core/html/ImageData.h
|
| @@ -32,6 +32,8 @@
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "core/CoreExport.h"
|
| #include "core/dom/DOMTypedArray.h"
|
| +#include "core/imagebitmap/ImageBitmapSource.h"
|
| +#include "platform/geometry/IntRect.h"
|
| #include "platform/geometry/IntSize.h"
|
| #include "platform/heap/Handle.h"
|
| #include "wtf/RefPtr.h"
|
| @@ -40,7 +42,7 @@ namespace blink {
|
|
|
| class ExceptionState;
|
|
|
| -class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>, public ScriptWrappable {
|
| +class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>, public ScriptWrappable, public ImageBitmapSource {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| static ImageData* create(const IntSize&);
|
| @@ -55,6 +57,10 @@ public:
|
| const DOMUint8ClampedArray* data() const { return m_data.get(); }
|
| DOMUint8ClampedArray* data() { return m_data.get(); }
|
|
|
| + // ImageBitmapSource implementation
|
| + IntSize bitmapSourceSize() override { return m_size; }
|
| + ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitmapSource*, int sx, int sy, int sw, int sh, ExceptionState&) override;
|
| +
|
| DEFINE_INLINE_TRACE() { }
|
|
|
| void dispose();
|
|
|