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

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

Issue 1814703002: AVDA: Use the SurfaceTexture matrix when copying on destruction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | content/common/gpu/media/android_deferred_rendering_backing_strategy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/android_copying_backing_strategy.cc
diff --git a/content/common/gpu/media/android_copying_backing_strategy.cc b/content/common/gpu/media/android_copying_backing_strategy.cc
index 0c01f74e2171a631ccd76a1ede26ab3d07275fb6..094b9446a42ff080d01827f32220199275051e5f 100644
--- a/content/common/gpu/media/android_copying_backing_strategy.cc
+++ b/content/common/gpu/media/android_copying_backing_strategy.cc
@@ -112,9 +112,6 @@ void AndroidCopyingBackingStrategy::UseCodecBufferForPictureBuffer(
float transform_matrix[16];
surface_texture_->GetTransformMatrix(transform_matrix);
- // add y-flip to correct UV coordinate systems.
- transform_matrix[13] += transform_matrix[5];
- transform_matrix[5] = -transform_matrix[5];
uint32_t picture_buffer_texture_id = picture_buffer.texture_id();
@@ -138,7 +135,7 @@ void AndroidCopyingBackingStrategy::UseCodecBufferForPictureBuffer(
state_provider_->GetGlDecoder().get(), GL_TEXTURE_EXTERNAL_OES,
surface_texture_id_, GL_TEXTURE_2D, picture_buffer_texture_id,
state_provider_->GetSize().width(), state_provider_->GetSize().height(),
- false, false, false, transform_matrix);
+ true, false, false, transform_matrix);
}
void AndroidCopyingBackingStrategy::CodecChanged(
« no previous file with comments | « no previous file | content/common/gpu/media/android_deferred_rendering_backing_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698