Chromium Code Reviews| Index: cc/tiles/gpu_image_decode_cache.cc |
| diff --git a/cc/tiles/gpu_image_decode_cache.cc b/cc/tiles/gpu_image_decode_cache.cc |
| index 39a822617dba6ab31d8606c710c47382018a576a..f81630b446024893ee59b36ba07597f7e50046fe 100644 |
| --- a/cc/tiles/gpu_image_decode_cache.cc |
| +++ b/cc/tiles/gpu_image_decode_cache.cc |
| @@ -1100,8 +1100,8 @@ void GpuImageDecodeCache::DecodeImageIfNecessary(const DrawImage& draw_image, |
| // In order to match GPU scaling quality (which uses mip-maps at high |
| // quality), we want to use at most medium filter quality for the |
| // scale. |
| - SkPixmap image_pixmap(image_info, backing_memory->data(), |
| - image_info.minRowBytes()); |
| + SkPixmap image_pixmap(image_info.makeColorSpace(nullptr), |
| + backing_memory->data(), image_info.minRowBytes()); |
|
ccameron
2017/04/17 18:40:03
Ooh, good point.
|
| // Note that scalePixels falls back to readPixels if the sale is 1x, so |
| // no need to special case that as an optimization. |
| if (!draw_image.image()->scalePixels( |