Reenable 16-bit png brd decode tests
authorMatt Sarett <msarett@google.com>
Wed, 14 Dec 2016 21:11:51 +0000 (16:11 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 14 Dec 2016 21:48:58 +0000 (21:48 +0000)
I accidentally turned these off in:
https://skia-review.googlesource.com/c/6023/

Even though the decode color type does not match the canvas,
we still want to run the test.

BUG=skia:

Change-Id: Ia96069a44e20d62a58d37a98bac81cfab5470fc0
Reviewed-on: https://skia-review.googlesource.com/6088
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>

dm/DMSrcSink.cpp

index 197dcc1..78e9c55 100644 (file)
@@ -148,9 +148,6 @@ Error BRDSrc::draw(SkCanvas* canvas) const {
                     fSampleSize, colorType, false)) {
                 return "Cannot decode (full) region.";
             }
-            if (colorType != bitmap.colorType()) {
-                return Error::Nonfatal("Cannot convert to color type.");
-            }
             canvas->drawBitmap(bitmap, 0, 0);
             return "";
         }
@@ -204,9 +201,6 @@ Error BRDSrc::draw(SkCanvas* canvas) const {
                             decodeTop, decodeWidth, decodeHeight), fSampleSize, colorType, false)) {
                         return "Cannot decode region.";
                     }
-                    if (colorType != bitmap.colorType()) {
-                        return Error::Nonfatal("Cannot convert to color type.");
-                    }
 
                     canvas->drawBitmapRect(bitmap,
                             SkRect::MakeXYWH((SkScalar) scaledBorder, (SkScalar) scaledBorder,