diff options
Diffstat (limited to 'tools/skpdiff/SkPMetric.cpp')
-rw-r--r-- | tools/skpdiff/SkPMetric.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/skpdiff/SkPMetric.cpp b/tools/skpdiff/SkPMetric.cpp index ed807636b6..beba4974b7 100644 --- a/tools/skpdiff/SkPMetric.cpp +++ b/tools/skpdiff/SkPMetric.cpp @@ -125,8 +125,8 @@ static void adobergb_to_cielab(float r, float g, float b, LAB* lab) { /// Converts a 8888 bitmap to LAB color space and puts it into the output static bool bitmap_to_cielab(const SkBitmap* bitmap, ImageLAB* outImageLAB) { SkBitmap bm8888; - if (bitmap->colorType() != kPMColor_SkColorType) { - if (!bitmap->copyTo(&bm8888, kPMColor_SkColorType)) { + if (bitmap->colorType() != kN32_SkColorType) { + if (!bitmap->copyTo(&bm8888, kN32_SkColorType)) { return false; } bitmap = &bm8888; |