Bug 1251910: Fix YUV422 IOSurface. r=mattwoodrow.
authorJean-Yves Avenard <jyavenard@mozilla.com>
Sun, 28 Feb 2016 19:14:40 +1100
changeset 322728 0fd6d83f2dc2dc51382bf2551b0a38ce0fdca9de
parent 322727 3bd640d45525f634e2f24049fbfe051683581c88
child 322729 86df22a417a955dca51cdcec9645b30ae64288af
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1251910, 1249273, 1248323
milestone47.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 1251910: Fix YUV422 IOSurface. r=mattwoodrow. Bug 1249273 reverted the changes of bug 1248323. MozReview-Commit-ID: 4ri1gTOf2Dg
gfx/layers/composite/ImageHost.cpp
--- a/gfx/layers/composite/ImageHost.cpp
+++ b/gfx/layers/composite/ImageHost.cpp
@@ -352,17 +352,17 @@ ImageHost::Composite(LayerComposite* aLa
       // BindTextureSource above should have returned false!
       MOZ_ASSERT(false);
       return;
     }
 
     bool isAlphaPremultiplied =
         !(mCurrentTextureHost->GetFlags() & TextureFlags::NON_PREMULTIPLIED);
     RefPtr<TexturedEffect> effect =
-        CreateTexturedEffect(mCurrentTextureHost->GetFormat(),
+        CreateTexturedEffect(mCurrentTextureHost->GetReadFormat(),
             mCurrentTextureSource.get(), aFilter, isAlphaPremultiplied,
             GetRenderState());
     if (!effect) {
       return;
     }
 
     if (!GetCompositor()->SupportsEffect(effect->mType)) {
       return;
@@ -592,17 +592,17 @@ ImageHost::GenEffect(const gfx::Filter& 
   if (!mCurrentTextureHost->BindTextureSource(mCurrentTextureSource)) {
     return nullptr;
   }
   bool isAlphaPremultiplied = true;
   if (mCurrentTextureHost->GetFlags() & TextureFlags::NON_PREMULTIPLIED) {
     isAlphaPremultiplied = false;
   }
 
-  return CreateTexturedEffect(mCurrentTextureHost->GetFormat(),
+  return CreateTexturedEffect(mCurrentTextureHost->GetReadFormat(),
                               mCurrentTextureSource,
                               aFilter,
                               isAlphaPremultiplied,
                               GetRenderState());
 }
 
 void
 ImageHost::SetImageContainer(ImageContainerParent* aImageContainer)