| 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..ebcf144ea67b680b095ab7b4c32b3e1cc1abcc0a 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() override;
|
| + ScriptPromise createImageBitmap(ScriptState*, EventTarget&, ImageBitmapSource*, int sx, int sy, int sw, int sh, ExceptionState&) override;
|
| +
|
| private:
|
| HTMLVideoElement(Document&);
|
|
|
|
|