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

Unified Diff: cc/trees/layer_tree_settings.cc

Issue 1324413003: Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment + android_arm64_dbg_recipe bot issue. Created 5 years, 2 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/trees/layer_tree_settings.h ('k') | components/mus/public/cpp/context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_settings.cc
diff --git a/cc/trees/layer_tree_settings.cc b/cc/trees/layer_tree_settings.cc
index 414abb3fab35f8cb4257ea3675f6f0cf91b90012..c079ef9db9d2181a27edbb0097abc93d5a3945b6 100644
--- a/cc/trees/layer_tree_settings.cc
+++ b/cc/trees/layer_tree_settings.cc
@@ -69,7 +69,10 @@ LayerTreeSettings::LayerTreeSettings()
image_decode_tasks_enabled(false),
use_compositor_animation_timelines(false),
wait_for_beginframe_interval(true),
- max_staging_buffer_usage_in_bytes(32 * 1024 * 1024) {}
+ max_staging_buffer_usage_in_bytes(32 * 1024 * 1024),
+ memory_policy_(64 * 1024 * 1024,
+ gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING,
+ ManagedMemoryPolicy::kDefaultNumResourcesLimit) {}
LayerTreeSettings::~LayerTreeSettings() {}
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | components/mus/public/cpp/context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698