Bug 1150549 - Remove debugging code accidentally left in the previous patch
☠☠ backed out by 8911b21aa87c ☠ ☠
authorNicolas Silva <nsilva@mozilla.com>
Mon, 25 May 2015 18:59:22 +0200
changeset 245494 4b6aa5c0a1bffff2d78fdf73b03699a4c91d3d43
parent 245493 fdf38a41d92b6d890f12da5f850448f681aa4e21
child 245495 cb33de12c0b5ff1461a78dd372718c9522e26cdd
push id28806
push userphilringnalda@gmail.com
push dateTue, 26 May 2015 02:10:16 +0000
treeherdermozilla-central@4362d9251296 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1150549
milestone41.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 1150549 - Remove debugging code accidentally left in the previous patch
gfx/layers/Effects.h
--- a/gfx/layers/Effects.h
+++ b/gfx/layers/Effects.h
@@ -280,21 +280,16 @@ CreateTexturedEffect(gfx::SurfaceFormat 
 inline TemporaryRef<TexturedEffect>
 CreateTexturedEffect(TextureSource* aSource,
                      TextureSource* aSourceOnWhite,
                      const gfx::Filter& aFilter,
                      bool isAlphaPremultiplied)
 {
   MOZ_ASSERT(aSource);
   if (aSourceOnWhite) {
-    if ((aSource->GetFormat() != gfx::SurfaceFormat::R8G8B8X8 &&
-         aSource->GetFormat() != gfx::SurfaceFormat::B8G8R8X8) ||
-        aSource->GetFormat() != aSourceOnWhite->GetFormat()) {
-      printf_stderr("XXXX - source %i - on white %i\n", (int)aSource->GetFormat(), (int)aSourceOnWhite->GetFormat());
-    }
     MOZ_ASSERT(aSource->GetFormat() == gfx::SurfaceFormat::R8G8B8X8 ||
                aSource->GetFormat() == gfx::SurfaceFormat::B8G8R8X8);
     MOZ_ASSERT(aSource->GetFormat() == aSourceOnWhite->GetFormat());
     return MakeAndAddRef<EffectComponentAlpha>(aSource, aSourceOnWhite, aFilter);
   }
 
   return CreateTexturedEffect(aSource->GetFormat(),
                               aSource,