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

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

Issue 2791813003: Fix broken draw/upload paths from videos to 2D canvas and WebGL. (Closed)
Patch Set: Disable GPU-GPU copies to floating-point textures on Android. Created 3 years, 8 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 3bf2a9d4f7c1d68896882ad758f7047a794e1fac..2e741f235ebd59cc110384346367ecd92780ed6c 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -310,13 +310,16 @@ void HTMLVideoElement::PaintCurrentFrame(PaintCanvas* canvas,
bool HTMLVideoElement::CopyVideoTextureToPlatformTexture(
gpu::gles2::GLES2Interface* gl,
GLuint texture,
+ GLenum internal_format,
+ GLenum format,
+ GLenum type,
bool premultiply_alpha,
bool flip_y) {
if (!GetWebMediaPlayer())
return false;
return GetWebMediaPlayer()->CopyVideoTextureToPlatformTexture(
- gl, texture, premultiply_alpha, flip_y);
+ gl, texture, internal_format, format, type, premultiply_alpha, flip_y);
}
bool HTMLVideoElement::TexImageImpl(

Powered by Google App Engine
This is Rietveld 408576698