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