Bug 1181028. Delete assertion to create equivalent draw targets during box shadow creation. r=mstange
authorMason Chang <mchang@mozilla.com>
Wed, 08 Jul 2015 10:00:32 -0700
changeset 251960 4a67e35361f5
parent 251959 2c5d5eb434b9
child 251961 d9ea769d96b8
push id29020
push usercbook@mozilla.com
push date2015-07-09 15:56 +0000
treeherdermozilla-central@d656ef3c4936 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1181028
milestone42.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 1181028. Delete assertion to create equivalent draw targets during box shadow creation. r=mstange
gfx/thebes/gfxBlur.cpp
--- a/gfx/thebes/gfxBlur.cpp
+++ b/gfx/thebes/gfxBlur.cpp
@@ -434,22 +434,16 @@ CreateBoxShadow(DrawTarget& aDT, SourceS
   gfxPlatform* platform = gfxPlatform::GetPlatform();
   RefPtr<DrawTarget> boxShadowDT =
     platform->CreateOffscreenContentDrawTarget(blurredSize, SurfaceFormat::B8G8R8A8);
 
   if (!boxShadowDT) {
     return nullptr;
   }
 
-  if (boxShadowDT->GetType() != aDT.GetType()) {
-    printf_stderr("Box shadow type: %d, dest draw target type: %d\n",
-      (int) boxShadowDT->GetType(), (int) aDT.GetType());
-    MOZ_ASSERT(false, "Box shadows are incorrect type\n");
-  }
-
   ColorPattern shadowColor(ToDeviceColor(aShadowColor));
   boxShadowDT->MaskSurface(shadowColor, aBlurMask, Point(0, 0));
   return boxShadowDT->Snapshot();
 }
 
 SourceSurface*
 GetBlur(DrawTarget& aDT,
         const IntSize& aRectSize,