| Index: tools/picture_utils.cpp
|
| diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp
|
| index a6803c67db42efdb26d5a4d8a50869860350a65c..63a48ce3e17b61749ecde00178d609fa98795fa3 100644
|
| --- a/tools/picture_utils.cpp
|
| +++ b/tools/picture_utils.cpp
|
| @@ -80,9 +80,8 @@
|
|
|
| SkAutoTMalloc<uint32_t> rgba(w*h);
|
|
|
| - auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named);
|
| - if (bitmap. colorType() == kN32_SkColorType &&
|
| - bitmap.colorSpace() == srgbColorSpace.get()) {
|
| + if (bitmap. colorType() == kN32_SkColorType &&
|
| + bitmap.profileType() == kSRGB_SkColorProfileType) {
|
| // 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();
|
|
|