| Index: tools/picture_utils.cpp
|
| diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp
|
| index 63a48ce3e17b61749ecde00178d609fa98795fa3..a6803c67db42efdb26d5a4d8a50869860350a65c 100644
|
| --- a/tools/picture_utils.cpp
|
| +++ b/tools/picture_utils.cpp
|
| @@ -80,8 +80,9 @@ namespace sk_tools {
|
|
|
| SkAutoTMalloc<uint32_t> rgba(w*h);
|
|
|
| - if (bitmap. colorType() == kN32_SkColorType &&
|
| - bitmap.profileType() == kSRGB_SkColorProfileType) {
|
| + auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named);
|
| + if (bitmap. colorType() == kN32_SkColorType &&
|
| + bitmap.colorSpace() == srgbColorSpace.get()) {
|
| // These are premul sRGB 8-bit pixels in SkPMColor order.
|
| // We want unpremul sRGB 8-bit pixels in RGBA order. We'll get there via floats.
|
| bitmap.lockPixels();
|
|
|