summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cc/tiles/prioritized_tile.cc1
-rw-r--r--ui/compositor/compositor.cc8
2 files changed, 6 insertions, 3 deletions
diff --git a/cc/tiles/prioritized_tile.cc b/cc/tiles/prioritized_tile.cc
index 67f33c9..2e0246c 100644
--- a/cc/tiles/prioritized_tile.cc
+++ b/cc/tiles/prioritized_tile.cc
@@ -33,6 +33,7 @@ void PrioritizedTile::AsValueInto(base::trace_event::TracedValue* value) const {
value->BeginDictionary("combined_priority");
priority().AsValueInto(value);
+ value->SetBoolean("is_occluded", is_occluded_);
value->EndDictionary();
value->SetString("resolution", TileResolutionToString(priority().resolution));
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index b5474a7..42e51cb 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;