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

Unified Diff: cc/tiles/software_image_decode_controller.h

Issue 1808633002: Use preferred format to allocate memory for decoded images (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment 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 7e370bb8cb8c1c87e1b5f8888cd1075700824695..20dc4511f23a95e0a97fc77ef29c396c987fcf17 100644
--- a/cc/tiles/software_image_decode_controller.h
+++ b/cc/tiles/software_image_decode_controller.h
@@ -96,7 +96,7 @@ class CC_EXPORT SoftwareImageDecodeController : public ImageDecodeController {
using ImageKey = ImageDecodeControllerKey;
using ImageKeyHash = ImageDecodeControllerKeyHash;
- SoftwareImageDecodeController();
+ explicit SoftwareImageDecodeController(ResourceFormat format = RGBA_8888);
~SoftwareImageDecodeController() override;
// ImageDecodeController overrides.
@@ -221,6 +221,8 @@ class CC_EXPORT SoftwareImageDecodeController : public ImageDecodeController {
// image the first time we see it. This mimics the previous behavior and
// should over time change as the compositor starts to handle more cases.
std::unordered_set<uint32_t> prerolled_images_;
+
+ ResourceFormat format_;
};
} // namespace cc
« 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