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 ed4e543feb40624856211d1fb12582b60c63f6a2..e3a2aefbc939242c0bafaeabf71a52aa93af1030 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: |
@@ -47,6 +48,9 @@ public: |
void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const override; |
FloatSize elementSize() const override; |
+ // ImageBitmapSource implementation |
+ IntSize bitmapSourceSize() const override { return size(); } |
+ |
DECLARE_VIRTUAL_TRACE(); |
private: |