| Index: third_party/WebKit/Source/core/frame/ImageBitmap.h
|
| diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
|
| index 90090b72dfe1960ffc5d9bc10e4b3c6cf0d7b50b..6cd0520f1b9143cf28eef3f9d4571d841d04831f 100644
|
| --- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
|
| +++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
|
| @@ -9,6 +9,7 @@
|
| #include "core/CoreExport.h"
|
| #include "core/html/HTMLImageElement.h"
|
| #include "core/html/canvas/CanvasImageSource.h"
|
| +#include "core/imagebitmap/ImageBitmapSource.h"
|
| #include "platform/geometry/IntRect.h"
|
| #include "platform/graphics/Image.h"
|
| #include "platform/graphics/ImageBuffer.h"
|
| @@ -23,7 +24,7 @@ class HTMLCanvasElement;
|
| class HTMLVideoElement;
|
| class ImageData;
|
|
|
| -class CORE_EXPORT ImageBitmap final : public RefCountedWillBeGarbageCollectedFinalized<ImageBitmap>, public ScriptWrappable, public ImageLoaderClient, public CanvasImageSource {
|
| +class CORE_EXPORT ImageBitmap final : public RefCountedWillBeGarbageCollectedFinalized<ImageBitmap>, public ScriptWrappable, public ImageLoaderClient, public CanvasImageSource, public ImageBitmapSource {
|
| DEFINE_WRAPPERTYPEINFO();
|
| WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageBitmap);
|
| public:
|
| @@ -51,6 +52,10 @@ public:
|
| void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const override;
|
| FloatSize elementSize() const override;
|
|
|
| + // ImageBitmapSource implementation
|
| + IntSize bitmapSourceSize() override { return size(); }
|
| + PassRefPtrWillBeRawPtr<ImageBitmap> createImageBitmap(EventTarget&, ImageBitmapSource*, int sx, int sy, int sw, int sh, ExceptionState&) override;
|
| +
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
|
|