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

Unified Diff: cc/tiles/software_image_decode_controller.h

Issue 1801933004: Refactor SoftwareImageDecodeController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating comment to reflect change in code. Created 4 years, 8 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 | « no previous file | cc/tiles/software_image_decode_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/software_image_decode_controller.h
diff --git a/cc/tiles/software_image_decode_controller.h b/cc/tiles/software_image_decode_controller.h
index a94c45f7071a0b80c26d03d771667df2d75651d0..9697720fb3dcec73d1accc7db5ef0ab02eb29fe3 100644
--- a/cc/tiles/software_image_decode_controller.h
+++ b/cc/tiles/software_image_decode_controller.h
@@ -211,6 +211,19 @@ class CC_EXPORT SoftwareImageDecodeController
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(const ImageKey& key,
+ const SkImage& 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,
+ const SkImage& image);
+
void SanityCheckState(int line, bool lock_acquired);
void RefImage(const ImageKey& key);
void RefAtRasterImage(const ImageKey& key);
« no previous file with comments | « no previous file | cc/tiles/software_image_decode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698