| Index: third_party/WebKit/public/platform/WebMediaPlayer.h
|
| diff --git a/third_party/WebKit/public/platform/WebMediaPlayer.h b/third_party/WebKit/public/platform/WebMediaPlayer.h
|
| index 75db1339d060c067c15e633cd2baa69f5af61843..35ce896eeb264c47548d0bfd2ec10cb5104e833e 100644
|
| --- a/third_party/WebKit/public/platform/WebMediaPlayer.h
|
| +++ b/third_party/WebKit/public/platform/WebMediaPlayer.h
|
| @@ -105,6 +105,13 @@ class WebMediaPlayer {
|
| typedef WebString TrackId;
|
| enum TrackType { TextTrack, AudioTrack, VideoTrack };
|
|
|
| + enum TexImageFunctionID {
|
| + TexImage2D,
|
| + TexSubImage2D,
|
| + TexImage3D,
|
| + TexSubImage3D
|
| + };
|
| +
|
| virtual ~WebMediaPlayer() {}
|
|
|
| virtual void load(LoadType, const WebMediaPlayerSource&, CORSMode) = 0;
|
| @@ -207,6 +214,23 @@ class WebMediaPlayer {
|
| return false;
|
| }
|
|
|
| + // Do tex(Sub)Image2D/3D for current frame. If it is not implemented for given
|
| + // parameters or fails, it returns false.
|
| + virtual bool texImageImpl(TexImageFunctionID functionID,
|
| + unsigned target,
|
| + gpu::gles2::GLES2Interface* gl,
|
| + int level,
|
| + int internalformat,
|
| + unsigned format,
|
| + unsigned type,
|
| + int xoffset,
|
| + int yoffset,
|
| + int zoffset,
|
| + bool flipY,
|
| + bool premultiplyAlpha) {
|
| + return false;
|
| + }
|
| +
|
| virtual WebAudioSourceProvider* getAudioSourceProvider() { return nullptr; }
|
|
|
| virtual void setContentDecryptionModule(
|
|
|