Index: gm/gmmain.cpp |
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp |
index 03556e70e97bc99aa7d27978873db956c0fc0bd8..52e7332b64da25e453369ae95c851b77595a3bf8 100644 |
--- a/gm/gmmain.cpp |
+++ b/gm/gmmain.cpp |
@@ -268,7 +268,7 @@ |
static void force_all_opaque(const SkBitmap& bitmap) { |
SkColorType colorType = bitmap.colorType(); |
switch (colorType) { |
- case kN32_SkColorType: |
+ case kPMColor_SkColorType: |
force_all_opaque_8888(bitmap); |
break; |
case kRGB_565_SkColorType: |
@@ -294,7 +294,7 @@ |
// from this method, we should be able to get rid of the |
// transformation to 8888 format also. |
SkBitmap copy; |
- bitmap.copyTo(©, kN32_SkColorType); |
+ bitmap.copyTo(©, kPMColor_SkColorType); |
if (!SkImageEncoder::EncodeFile(path.c_str(), copy, |
SkImageEncoder::kPNG_Type, |
100)) { |
@@ -740,8 +740,8 @@ |
return; |
} |
- if ((kN32_SkColorType != expectedBitmap.colorType()) || |
- (kN32_SkColorType != actualBitmap.colorType())) { |
+ if ((kPMColor_SkColorType != expectedBitmap.colorType()) || |
+ (kPMColor_SkColorType != actualBitmap.colorType())) { |
SkDebugf("---- %s: not computing max per-channel pixel mismatch because non-8888\n", |
testName); |
return; |