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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.h

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebGL video to texture support and readPixels from R16UI for CPU access Created 4 years, 4 months 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/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 f6c45f29827b8f278dc04bfb2ff2518925a8485b..a746916944f68b760f7ae3d7f77b9bc1c7ba35ae 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.h
@@ -72,6 +72,9 @@ public:
// Used by WebGL to do GPU-GPU textures copy if possible.
bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, GLuint texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flipY);
+ // Used by WebGL to do CPU-GPU texture upload if possible.
+ bool texImageImpl(const char* functionID, GLenum target, gpu::gles2::GLES2Interface*, GLint level, GLint internalformat, GLenum format, GLenum type, GLint xoffset, GLint yoffset, GLint zoffset, bool flipY, bool premultiplyAlpha);
+
bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; }
bool hasAvailableVideoFrame() const;

Powered by Google App Engine
This is Rietveld 408576698