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..a9392de8a8b87f2f07ca5d225d490a102f1c55f7 100644 |
--- a/content/common/gpu/media/android_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc |
@@ -357,10 +357,23 @@ void AndroidVideoDecodeAccelerator::SendCurrentSurfaceToClient( |
// attached. |
// 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(), |
- size_.height(), false, false, false); |
+ // TODO(hkuang): get the StreamTexture transform matrix in GPU process |
+ // instead of using default matrix crbug.com/226218. |
+ const static GLfloat default_matrix[16] = {1.0f, 0.0f, 0.0f, 0.0f, |
+ 0.0f, 1.0f, 0.0f, 0.0f, |
+ 0.0f, 0.0f, 1.0f, 0.0f, |
+ 0.0f, 0.0f, 0.0f, 1.0f}; |
+ copier_->DoCopyTextureWithTransform(gl_decoder_.get(), |
+ GL_TEXTURE_EXTERNAL_OES, |
+ surface_texture_id_, |
+ picture_buffer_texture_id, |
+ 0, |
+ size_.width(), |
+ size_.height(), |
+ false, |
+ false, |
+ false, |
+ default_matrix); |
base::MessageLoop::current()->PostTask( |
FROM_HERE, |