Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1475)

Unified Diff: cc/tiles/software_image_decode_cache.h

Issue 2857923004: cc: Keep PaintImage in DrawImage. (Closed)
Patch Set: .. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tiles/image_controller.cc ('k') | cc/tiles/software_image_decode_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 04aeb452ed4ff0b4fb50e30b8be8b47574c65ead..ab0713afe8ac42443795ba6cabfae4fe63b11adc 100644
--- a/cc/tiles/software_image_decode_cache.h
+++ b/cc/tiles/software_image_decode_cache.h
@@ -264,17 +264,15 @@ class CC_EXPORT SoftwareImageDecodeCache
// 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);
+ std::unique_ptr<DecodedImage> GetSubrectImageDecode(const ImageKey& key,
+ const PaintImage& image);
// GetScaledImageDecode is called by DecodeImageInternal when the quality
// requires the image be scaled. Like DecodeImageInternal, it should be
// called with no lock acquired and it returns nullptr if the decoding or
// scaling failed.
- std::unique_ptr<DecodedImage> GetScaledImageDecode(
- const ImageKey& key,
- sk_sp<const SkImage> image);
+ std::unique_ptr<DecodedImage> GetScaledImageDecode(const ImageKey& key,
+ const PaintImage& image);
void RefImage(const ImageKey& key);
void RefAtRasterImage(const ImageKey& key);
« no previous file with comments | « cc/tiles/image_controller.cc ('k') | cc/tiles/software_image_decode_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698