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

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

Issue 2562003003: Fix the size of video textures uploaded to WebGL. (Closed)
Patch Set: Rebased. Fixed Android build. Created 3 years, 11 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 2e2e50ab97d12e54bf90b8f020a09da74b5b6735..04f078d697d6fa63ca246b7fbe0f574e88ca24c6 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -211,17 +211,13 @@ void HTMLVideoElement::paintCurrentFrame(SkCanvas* canvas,
bool HTMLVideoElement::copyVideoTextureToPlatformTexture(
gpu::gles2::GLES2Interface* gl,
GLuint texture,
- GLenum internalFormat,
- GLenum type,
bool premultiplyAlpha,
bool flipY) {
if (!webMediaPlayer())
return false;
- DCHECK(Extensions3DUtil::canUseCopyTextureCHROMIUM(GL_TEXTURE_2D,
- internalFormat, type, 0));
return webMediaPlayer()->copyVideoTextureToPlatformTexture(
- gl, texture, internalFormat, type, premultiplyAlpha, flipY);
+ gl, texture, premultiplyAlpha, flipY);
}
bool HTMLVideoElement::texImageImpl(

Powered by Google App Engine
This is Rietveld 408576698