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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: autogen code 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: content/renderer/media/android/webmediaplayer_android.cc
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
index 8bbb6b301450f0ffe4c0940d75c5f0d82a79182b..bd6e3e4290f4e92607219986bc9ec8d6cc500fc3 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -612,9 +612,8 @@ bool WebMediaPlayerAndroid::copyVideoTextureToPlatformTexture(
// Make sure to only copy the natural size to avoid putting garbage
// into the bottom of the destination texture.
const gfx::Size& natural_size = video_frame->natural_size();
- gl->CopySubTextureCHROMIUM(src_texture, 0, texture, 0,
- 0, 0, 0, 0,
- natural_size.width(), natural_size.height(),
+ gl->CopySubTextureCHROMIUM(GL_TEXTURE_2D, src_texture, 0, texture, 0, 0, 0, 0,
+ 0, natural_size.width(), natural_size.height(),
flip_y, premultiply_alpha, false);
gl->DeleteTextures(1, &src_texture);
gl->Flush();

Powered by Google App Engine
This is Rietveld 408576698