Index: third_party/WebKit/Source/core/html/HTMLVideoElement.h |
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.h b/third_party/WebKit/Source/core/html/HTMLVideoElement.h |
index 056e560e787dbdf00b450dcf6b7b23623ba79614..48b73eb4c0ea2ad90f39153b3e99b9225ab5d0c0 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.h |
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.h |
@@ -30,6 +30,7 @@ |
#include "core/html/HTMLImageLoader.h" |
#include "core/html/HTMLMediaElement.h" |
#include "core/html/canvas/CanvasImageSource.h" |
+#include "core/imagebitmap/ImageBitmapSource.h" |
#include "platform/graphics/GraphicsTypes3D.h" |
class SkPaint; |
@@ -45,7 +46,7 @@ class GraphicsContext; |
typedef unsigned GLenum; |
typedef int GC3Dint; |
-class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, public CanvasImageSource { |
+class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, public CanvasImageSource, public ImageBitmapSource { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
static PassRefPtrWillBeRawPtr<HTMLVideoElement> create(Document&); |
@@ -86,6 +87,10 @@ public: |
bool isHTMLVideoElement() const override { return true; } |
+ // ImageBitmapSource implementation |
+ IntSize bitmapSourceSize() const override; |
+ ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy, int sw, int sh, ExceptionState&) override; |
+ |
private: |
HTMLVideoElement(Document&); |