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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 924143005: cc: Stop passing the occlusion explicitly to UpdateTiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: passocclusion: perftests Created 5 years, 10 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/resources/tile_manager_perftest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 443308b6dfbd08e5b5502082871b1a86a08eee43..6a64086e76978014bb20d545e1f62366fe9ce21c 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -654,7 +654,6 @@ bool LayerTreeImpl::UpdateDrawProperties() {
const bool resourceless_software_draw =
(layer_tree_host_impl_->GetDrawMode() ==
DRAW_MODE_RESOURCELESS_SOFTWARE);
- static const Occlusion kEmptyOcclusion;
size_t layers_updated_count = 0;
bool tile_priorities_updated = false;
for (PictureLayerImpl* layer : picture_layers_) {
@@ -662,12 +661,7 @@ bool LayerTreeImpl::UpdateDrawProperties() {
if (!layer->IsDrawnRenderSurfaceLayerListMember())
continue;
++layers_updated_count;
- const Occlusion& occlusion =
- settings().use_occlusion_for_tile_prioritization
- ? layer->draw_properties().occlusion_in_content_space
- : kEmptyOcclusion;
- tile_priorities_updated |=
- layer->UpdateTiles(occlusion, resourceless_software_draw);
+ tile_priorities_updated |= layer->UpdateTiles(resourceless_software_draw);
}
if (tile_priorities_updated)
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698