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

Unified Diff: media/gpu/rendering_helper.cc

Issue 2379773002: Don't flip video_decode_accelerator_unittest output if GLSurface already flips it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/rendering_helper.cc
diff --git a/media/gpu/rendering_helper.cc b/media/gpu/rendering_helper.cc
index 1227d39ba2183d5f4200a242c03b73ac30eb0ba7..7196ba7a092295998c84ec70eb2138a704906fe1 100644
--- a/media/gpu/rendering_helper.cc
+++ b/media/gpu/rendering_helper.cc
@@ -735,7 +735,7 @@ void RenderingHelper::RenderContent() {
static_cast<base::WaitableEvent*>(NULL)));
}
- int tex_flip = 1;
+ int tex_flip = !gl_surface_->FlipsVertically();
#if defined(USE_OZONE)
// Ozone surfaceless renders flipped from normal GL, so there's no need to
// do an extra flip.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698