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 { |
Ken Russell (switch to Gerrit)
2016/11/22 22:47:44
Add a comment that this must stay in sync with the
aleksandar.stojiljkovic
2016/11/27 20:44:00
Done - comment added to both places.
|
+ 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. |
Ken Russell (switch to Gerrit)
2016/11/22 22:47:44
Please define whether this allocates the destinati
aleksandar.stojiljkovic
2016/11/27 20:44:00
Done.
|
+ 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( |