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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 2110683004: cc: Move filters to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 5 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 9c65531f5ae2292889d9aa673ae5ec5b947af16c..7024f3a0717c419dc43f318f11e4dd64d51a6f0c 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -383,10 +383,10 @@ static void ComputeInitialRenderSurfaceLayerList(
// same is true for layers with filters that move pixels.
// TODO(senorblanco): make this smarter for the SkImageFilter case (check
// for pixel-moving filters)
- bool is_occlusion_immune = surface->HasCopyRequest() ||
- surface->HasReplica() ||
- layer->filters().HasReferenceFilter() ||
- layer->filters().HasFilterThatMovesPixels();
+ const FilterOperations& filters = surface->Filters();
+ bool is_occlusion_immune =
+ surface->HasCopyRequest() || surface->HasReplica() ||
+ filters.HasReferenceFilter() || filters.HasFilterThatMovesPixels();
if (is_occlusion_immune) {
surface->SetNearestOcclusionImmuneAncestor(surface);
} else if (is_root) {
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698