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

Unified Diff: content/common/gpu/media/android_video_decode_accelerator.cc

Issue 374193002: gpu: Optimize and cleanup code used for CHROMIUM_copy_texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewers commnets Created 6 years, 5 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/common/gpu/media/android_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
index f72e1b257d77c8bc9f5c243ab2f1e34d5faad042..a5372094ea755a4d0416923640c32e1e69d8569a 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.cc
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc
@@ -358,8 +358,8 @@ void AndroidVideoDecodeAccelerator::SendCurrentSurfaceToClient(
// 2. SurfaceTexture requires us to apply a transform matrix when we show
// the texture.
copier_->DoCopyTexture(gl_decoder_.get(), GL_TEXTURE_EXTERNAL_OES,
- GL_TEXTURE_2D, surface_texture_id_,
- picture_buffer_texture_id, 0, size_.width(),
+ surface_texture_id_, picture_buffer_texture_id,
+ 0, GL_RGBA, size_.width(),
size_.height(), false, false, false);
base::MessageLoop::current()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698