Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1149)

Unified Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2476693002: WebGL & 16-bit video stream: upload to FLOAT texture. (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698