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

Unified Diff: ui/compositor/compositor.cc

Issue 2321883002: cc: Remove SetMemoryPolicy from OutputSurface and Display. (Closed)
Patch Set: nits Created 4 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
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 9247e1096745723ddade6b276c244cef37c84464..540c9d7070be99f76c706f768567468ba43a7a77 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -183,13 +183,9 @@ Compositor::Compositor(ui::ContextFactory* context_factory,
settings.use_output_surface_begin_frame_source = true;
-#if !defined(OS_ANDROID)
- // TODO(sohanjg): Revisit this memory usage in tile manager.
- cc::ManagedMemoryPolicy policy(
- 512 * 1024 * 1024, gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE,
- settings.memory_policy_.num_resources_limit);
- settings.memory_policy_ = policy;
-#endif
+ settings.gpu_memory_policy.bytes_limit_when_visible = 512 * 1024 * 1024;
+ settings.gpu_memory_policy.priority_cutoff_when_visible =
+ gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE;
base::TimeTicks before_create = base::TimeTicks::Now();
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698