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

Unified Diff: ui/compositor/compositor.cc

Issue 1277053002: cc: Use occlusion for deciding raster/eviction priorities in browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/prioritized_tile.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 015a6ea51e36b8caf725ed48a130cbf1b018ce58..e03bd070a6c7d6a76623d59d5cfa05be8b33fc56 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -85,10 +85,12 @@ Compositor::Compositor(gfx::AcceleratedWidget widget,
cc::LayerTreeSettings settings;
- // When impl-side painting is enabled, this will ensure PictureLayers always
- // can have LCD text, to match the previous behaviour with ContentLayers,
- // where LCD-not-allowed notifications were ignored.
+ // This will ensure PictureLayers always can have LCD text, to match the
+ // previous behaviour with ContentLayers, where LCD-not-allowed notifications
+ // were ignored.
settings.layers_always_allowed_lcd_text = true;
+ // Use occlusion to allow more overlapping windows to take less memory.
+ settings.use_occlusion_for_tile_prioritization = true;
settings.renderer_settings.refresh_rate =
context_factory_->DoesCreateTestContexts() ? kTestRefreshRate
: kDefaultRefreshRate;
« no previous file with comments | « cc/tiles/prioritized_tile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698