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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 21154002: Add support for converting cc::FilterOperations into an SkImageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 3 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/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_impl.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 b8436756fc4762df4194493b3d602e274a8d1ab3..2178b0cf4408779b6d1412eb650e2f93e62fd2aa 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -555,8 +555,7 @@ static bool SubtreeShouldRenderToSeparateSurface(
}
// If the layer uses a CSS filter.
- if (!layer->filters().IsEmpty() || !layer->background_filters().IsEmpty() ||
- layer->filter()) {
+ if (!layer->filters().IsEmpty() || !layer->background_filters().IsEmpty()) {
DCHECK(!is_root);
return true;
}
@@ -1548,7 +1547,8 @@ static void CalculateDrawPropertiesInternal(
// TODO(senorblanco): make this smarter for the SkImageFilter case (check
// for pixel-moving filters)
- if (layer->filters().HasFilterThatMovesPixels() || layer->filter())
+ if (layer->filters().HasReferenceFilter() ||
+ layer->filters().HasFilterThatMovesPixels())
nearest_ancestor_surface_that_moves_pixels = render_surface;
render_surface->SetNearestAncestorThatMovesPixels(
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698