tweak gm bounds to better fit the content
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 14 Mar 2012 20:00:42 +0000 (20:00 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 14 Mar 2012 20:00:42 +0000 (20:00 +0000)
remove assert that is too strict if the src is the dst of a prev draw
(where alpha might be 0xFE, even if it *should* be 0xFF)

git-svn-id: http://skia.googlecode.com/svn/trunk@3388 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/tablecolorfilter.cpp
src/core/SkBlitRow_D4444.cpp

index df33337..7f0a623 100644 (file)
@@ -99,7 +99,7 @@ protected:
     }
     
     virtual SkISize onISize() {
-        return SkISize::Make(640, 480);
+        return SkISize::Make(700, 300);
     }
     
     virtual void onDraw(SkCanvas* canvas) {
index d66d2b7..3a92a6b 100644 (file)
@@ -102,7 +102,6 @@ static void S32_D4444_Opaque_Dither(uint16_t* SK_RESTRICT dst,
         do {
             SkPMColor c = *src++;
             SkPMColorAssert(c);
-            SkASSERT(SkGetPackedA32(c) == 255);
 
             unsigned dither = DITHER_VALUE(x);
             *dst++ = SkDitherARGB32To4444(c, dither);