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

Unified Diff: cc/layers/layer_impl.cc

Issue 2270273002: cc : Add OnFilterAnimated to effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 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/layers/layer_impl.h ('k') | cc/layers/layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index b204d8d8f2257fe2447a86876d4b7364a94d7a2f..3d773b91d9b7cc3094b2fd662195a1d3a0d8a0ad 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -542,22 +542,6 @@ gfx::ScrollOffset LayerImpl::ScrollOffsetForAnimation() const {
return CurrentScrollOffset();
}
-void LayerImpl::OnFilterAnimated(const FilterOperations& filters) {
- layer_tree_impl()->AddToFilterAnimationsMap(id(), filters);
- PropertyTrees* property_trees = layer_tree_impl()->property_trees();
- DCHECK(
- property_trees->IsInIdToIndexMap(PropertyTrees::TreeType::EFFECT, id()));
- EffectNode* node = property_trees->effect_tree.Node(effect_tree_index());
- if (node->filters == filters)
- return;
- node->filters = filters;
- node->effect_changed = true;
- property_trees->changed = true;
- property_trees->effect_tree.set_needs_update(true);
- SetNeedsPushProperties();
- layer_tree_impl()->set_needs_update_draw_properties();
-}
-
void LayerImpl::OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) {
// Only layers in the active tree should need to do anything here, since
// layers in the pending tree will find out about these changes as a
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698