| Index: cc/tiles/software_image_decode_cache.h
|
| diff --git a/cc/tiles/software_image_decode_cache.h b/cc/tiles/software_image_decode_cache.h
|
| index fc894e069cdd86fd0d258b4e2783b880f6020199..eb24fd9c298665ac5cc003e64c7dbec6d46fc7b5 100644
|
| --- a/cc/tiles/software_image_decode_cache.h
|
| +++ b/cc/tiles/software_image_decode_cache.h
|
| @@ -249,18 +249,20 @@ class CC_EXPORT SoftwareImageDecodeCache
|
| DecodedDrawImage GetDecodedImageForDrawInternal(const ImageKey& key,
|
| const DrawImage& draw_image);
|
|
|
| - // GetOriginalImageDecode is called by DecodeImageInternal when the quality
|
| - // does not scale the image. Like DecodeImageInternal, it should be called
|
| - // with no lock acquired and it returns nullptr if the decoding failed.
|
| - std::unique_ptr<DecodedImage> GetOriginalImageDecode(
|
| + // GetOriginalSizeImageDecode is called by DecodeImageInternal when the
|
| + // quality does not scale the image. Like DecodeImageInternal, it should be
|
| + // called with no lock acquired and it returns nullptr if the decoding failed.
|
| + std::unique_ptr<DecodedImage> GetOriginalSizeImageDecode(
|
| + const ImageKey& key,
|
| sk_sp<const SkImage> image);
|
|
|
| - // GetSubrectImageDecode is similar to GetOriginalImageDecode in that no scale
|
| - // is performed on the image. However, we extract a subrect (copy it out) and
|
| - // only return this subrect in order to cache a smaller amount of memory. Note
|
| - // that this uses GetOriginalImageDecode to get the initial data, which
|
| - // ensures that we cache an unlocked version of the original image in case we
|
| - // need to extract multiple subrects (as would be the case in an atlas).
|
| + // GetSubrectImageDecode is similar to GetOriginalSizeImageDecode in that no
|
| + // scale is performed on the image. However, we extract a subrect (copy it
|
| + // out) and only return this subrect in order to cache a smaller amount of
|
| + // memory. Note that this uses GetOriginalSizeImageDecode to get the initial
|
| + // data, which ensures that we cache an unlocked version of the original image
|
| + // in case we need to extract multiple subrects (as would be the case in an
|
| + // atlas).
|
| std::unique_ptr<DecodedImage> GetSubrectImageDecode(
|
| const ImageKey& key,
|
| sk_sp<const SkImage> image);
|
|
|