Bug 923917 - Properly set the y-flip flag in SharedTextureClientOGL. r=Bas
authorNicolas Silva <nical@mozilla.com>
Wed, 09 Oct 2013 18:20:57 -0700
changeset 164101 a79c6c91b10548b3942e1312f39f7dda187f314a
parent 164100 05c32b7824e6f609b1dc037d9e1b6acf8d6184d2
child 164102 8fcfc380bfc977986b5650827e2b7aa9547aab1f
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs923917
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 923917 - Properly set the y-flip flag in SharedTextureClientOGL. r=Bas
gfx/layers/opengl/TextureClientOGL.cpp
--- a/gfx/layers/opengl/TextureClientOGL.cpp
+++ b/gfx/layers/opengl/TextureClientOGL.cpp
@@ -50,16 +50,19 @@ SharedTextureClientOGL::InitWith(gl::Sha
                                  bool aInverted)
 {
   MOZ_ASSERT(IsValid());
   MOZ_ASSERT(!IsAllocated());
   mHandle = aHandle;
   mSize = aSize;
   mShareType = aShareType;
   mInverted = aInverted;
+  if (mInverted) {
+    AddFlags(TEXTURE_NEEDS_Y_FLIP);
+  }
 }
 
 bool
 SharedTextureClientOGL::IsAllocated() const
 {
   return mHandle != 0;
 }