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

Unified Diff: cc/tiles/gpu_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/test/fake_tile_manager.cc ('k') | cc/tiles/gpu_image_decode_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/gpu_image_decode_controller.h
diff --git a/cc/tiles/gpu_image_decode_controller.h b/cc/tiles/gpu_image_decode_controller.h
index 26e8bd1b58e13287690a47c2e36f8cd04f842294..6a9d200a2828234bf4e7cc2c33415836faf48804 100644
--- a/cc/tiles/gpu_image_decode_controller.h
+++ b/cc/tiles/gpu_image_decode_controller.h
@@ -54,7 +54,8 @@ class CC_EXPORT GpuImageDecodeController
public base::trace_event::MemoryDumpProvider {
public:
explicit GpuImageDecodeController(ContextProvider* context,
- ResourceFormat decode_format);
+ ResourceFormat decode_format,
+ size_t max_gpu_image_bytes);
~GpuImageDecodeController() override;
// ImageDecodeController overrides.
@@ -188,6 +189,7 @@ class CC_EXPORT GpuImageDecodeController
size_t cached_items_limit_;
size_t cached_bytes_limit_;
size_t bytes_used_;
+ const size_t max_gpu_image_bytes_;
// We can't release GPU backed SkImages without holding the context lock,
// so we add them to this list and defer deletion until the next time the lock
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | cc/tiles/gpu_image_decode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698