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

Unified Diff: content/common/gpu/stream_texture_android.cc

Issue 1818073002: Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetTextureMatrix should be the only available method 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
Index: content/common/gpu/stream_texture_android.cc
diff --git a/content/common/gpu/stream_texture_android.cc b/content/common/gpu/stream_texture_android.cc
index 15ebb532d492d4c60c9b6783aec71121d8cdacd1..3273972f298d621f882b4adeed5c690f1ff9e97d 100644
--- a/content/common/gpu/stream_texture_android.cc
+++ b/content/common/gpu/stream_texture_android.cc
@@ -93,6 +93,7 @@ StreamTexture::~StreamTexture() {
void StreamTexture::GetTextureMatrix(float xform[16]) {
UpdateTexImage();
surface_texture_->GetTransformMatrix(xform);
+ YInvertMatrix(xform);
}
void StreamTexture::OnWillDestroyStub() {

Powered by Google App Engine
This is Rietveld 408576698