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

Unified Diff: ui/compositor/compositor.cc

Issue 2726263003: cc::ResourcePool - Re-use larger resources for smaller requests (Closed)
Patch Set: rebase Created 3 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
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 862bc1b92a5dac1b389f279c3dbf0317ad1ca82a..333fe279a10486af4a5667f9efb02ff8e75022c0 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -190,6 +190,9 @@ Compositor::Compositor(const cc::FrameSinkId& frame_sink_id,
settings.gpu_memory_policy.priority_cutoff_when_visible =
gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE;
+ settings.renderer_settings.disallow_non_exact_resource_reuse =
danakj 2017/05/04 21:48:37 This won't affect layout tests fwiw, but it's fine
ericrk 2017/05/05 23:18:38 Yup, missed the other half of this. Added it in.
+ command_line->HasSwitch(cc::switches::kDisallowNonExactResourceReuse);
+
base::TimeTicks before_create = base::TimeTicks::Now();
animation_host_ = cc::AnimationHost::CreateMainInstance();
« cc/trees/layer_tree_host_impl.cc ('K') | « content/shell/app/shell_main_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698