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

Unified Diff: cc/trees/layer_tree_host_impl.cc

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/software_image_decode_controller_unittest.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index edd81a0d566df78b2e43e9a55ad2c05cab081c54..8de549f5f60343f800cd8bf594298b12416d197b 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2157,11 +2157,13 @@ void LayerTreeHostImpl::CreateTileManagerResources() {
if (use_gpu_rasterization_) {
image_decode_controller_ = base::WrapUnique(new GpuImageDecodeController(
output_surface_->worker_context_provider(),
- settings_.renderer_settings.preferred_tile_format));
+ settings_.renderer_settings.preferred_tile_format,
+ settings_.gpu_decoded_image_budget_bytes));
} else {
image_decode_controller_ =
base::WrapUnique(new SoftwareImageDecodeController(
- settings_.renderer_settings.preferred_tile_format));
+ settings_.renderer_settings.preferred_tile_format,
+ settings_.software_decoded_image_budget_bytes));
}
// Pass the single-threaded synchronous task graph runner to the worker pool
« no previous file with comments | « cc/tiles/software_image_decode_controller_unittest.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698