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

Unified Diff: cc/tiles/software_image_decode_controller.h

Issue 1991363003: cc: Plumb gpu/sw image decode limits as layer tree settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/gpu_image_decode_controller_unittest.cc ('k') | 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 14632aad610572e547c5e60294eedd08af152a9b..e27ef15a6870928fdea1e53b6882438465211bc6 100644
--- a/cc/tiles/software_image_decode_controller.h
+++ b/cc/tiles/software_image_decode_controller.h
@@ -103,8 +103,8 @@ class CC_EXPORT SoftwareImageDecodeController
using ImageKey = ImageDecodeControllerKey;
using ImageKeyHash = ImageDecodeControllerKeyHash;
- explicit SoftwareImageDecodeController(ResourceFormat format);
- SoftwareImageDecodeController();
+ SoftwareImageDecodeController(ResourceFormat format,
+ size_t locked_memory_limit_bytes);
~SoftwareImageDecodeController() override;
// ImageDecodeController overrides.
@@ -177,6 +177,7 @@ class CC_EXPORT SoftwareImageDecodeController
void AddUsage(size_t usage);
void SubtractUsage(size_t usage);
void ResetUsage();
+ size_t total_limit_bytes() const { return limit_bytes_; }
private:
size_t GetCurrentUsageSafe() const;
« no previous file with comments | « cc/tiles/gpu_image_decode_controller_unittest.cc ('k') | cc/tiles/software_image_decode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698