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

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: remove more memory alloc codes. Created 5 years, 3 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/trees/layer_tree_settings.cc
diff --git a/cc/trees/layer_tree_settings.cc b/cc/trees/layer_tree_settings.cc
index b998e957eb74a620307f4aaf471a404729cf5085..596b8f324a162b19446bdcd0cc898c3e0de53ec6 100644
--- a/cc/trees/layer_tree_settings.cc
+++ b/cc/trees/layer_tree_settings.cc
@@ -72,7 +72,10 @@ LayerTreeSettings::LayerTreeSettings()
use_compositor_animation_timelines(false),
invert_viewport_scroll_order(false),
wait_for_beginframe_interval(true),
- max_staging_buffers(32) {}
+ max_staging_buffers(32),
+ memory_policy_(64 * 1024 * 1024,
+ gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING,
+ ManagedMemoryPolicy::kDefaultNumResourcesLimit) {}
LayerTreeSettings::~LayerTreeSettings() {}

Powered by Google App Engine
This is Rietveld 408576698