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

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

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: Tests: cc, skcanvas_video_renderer, wrtcrecorder... Fake capture supports Y16. Created 4 years, 3 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.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
index 4bc83610e903afc6cc3fc93b955609de5ec5a6b5..05f10608defb1baf47e25193ca85bd2f4cd66981 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -213,10 +213,16 @@ bool HTMLVideoElement::copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interf
if (!webMediaPlayer())
return false;
- DCHECK(Extensions3DUtil::canUseCopyTextureCHROMIUM(GL_TEXTURE_2D, internalFormat, type, 0));
return webMediaPlayer()->copyVideoTextureToPlatformTexture(gl, texture, internalFormat, type, premultiplyAlpha, flipY);
}
+bool HTMLVideoElement::texImageImpl(const char* functionID, GLenum target, gpu::gles2::GLES2Interface* gl, GLint level, GLint internalformat, GLenum format, GLenum type, GLint xoffset, GLint yoffset, GLint zoffset, bool flipY, bool premultiplyAlpha)
+{
+ if (!webMediaPlayer())
+ return false;
+ return webMediaPlayer()->texImageImpl(functionID, target, gl, level, internalformat, format, type, xoffset, yoffset, zoffset, flipY, premultiplyAlpha);
+}
+
bool HTMLVideoElement::hasAvailableVideoFrame() const
{
if (!webMediaPlayer())

Powered by Google App Engine
This is Rietveld 408576698