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

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

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: use dest_target instead of target 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..c913c4e7b82c51a90819765a55325cbde96b7f02 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(src_texture, 0, GL_TEXTURE_2D, 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