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

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: Fixing typo in variable name in constructor declaration. Created 4 years, 9 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
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 4e959c7f2f8deae238e8e1e1bd9b4435c12e29ff..4a2e8ec703150455a89aab7a0ca96139c06dd440 100644
--- a/cc/tiles/software_image_decode_controller.h
+++ b/cc/tiles/software_image_decode_controller.h
@@ -187,6 +187,31 @@ class CC_EXPORT SoftwareImageDecodeController : public ImageDecodeController {
DecodedDrawImage GetDecodedImageForDrawInternal(const ImageKey& key,
const DrawImage& draw_image);
+ struct DecodedImageResult {
vmpstr 2016/03/31 19:54:32 Can you move types to the top (next to other types
cblume 2016/04/09 06:48:54 Done. The extra type was just to facilitate the s
+ DecodedImageResult(SkPixmap decoded_pixmap,
+ DrawImage original_size_draw_image,
+ DecodedDrawImage decoded_draw_image);
+
+ SkPixmap decoded_pixmap_;
vmpstr 2016/03/31 19:54:32 Typically, struct members that are public are name
cblume 2016/04/09 06:48:54 Done.
+ DrawImage original_size_draw_image_;
+ DecodedDrawImage decoded_draw_image_;
+ };
+
+ scoped_ptr<DecodedImage> DecodeImageMediumQuality(const ImageKey& key,
vmpstr 2016/03/31 19:54:33 Add comments for each of the functions please. Spe
cblume 2016/04/09 06:48:54 Done.
+ const SkImage& image);
+ scoped_ptr<DecodedImage> DecodeImageHighQuality(const ImageKey& key,
+ const SkImage& image);
+
+ scoped_ptr<DecodedImage> GetOriginalImageDecode(const ImageKey& key,
+ const SkImage& image);
+
+ DecodedImageResult DecodeImageOrUseCache(const ImageKey& key,
vmpstr 2016/03/31 19:54:33 This is named somewhat awkwardly. I don't really k
+ const SkImage& image);
+
+ scoped_ptr<DecodedImage> ScaleImage(
+ const ImageKey& key,
+ const DecodedImageResult& decoded_image_result);
+
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') | cc/tiles/software_image_decode_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698