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

Unified Diff: cc/trees/property_tree.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/trees/property_tree.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index 18fb75f38a23ceb64ada08ccfd62fe2b60639bad..77d0a5c27c32653d7d7c01ff615d439ff6caf15b 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -943,6 +943,20 @@ void EffectTree::OnOpacityAnimated(float opacity,
layer_tree_impl->set_needs_update_draw_properties();
}
+void EffectTree::OnFilterAnimated(const FilterOperations& filters,
+ int id,
+ LayerTreeImpl* layer_tree_impl) {
+ EffectNode* node = Node(id);
+ layer_tree_impl->AddToFilterAnimationsMap(node->owner_id, filters);
+ if (node->filters == filters)
+ return;
+ node->filters = filters;
+ node->effect_changed = true;
+ property_trees()->changed = true;
+ property_trees()->effect_tree.set_needs_update(true);
+ layer_tree_impl->set_needs_update_draw_properties();
+}
+
void EffectTree::UpdateEffects(int id) {
EffectNode* node = Node(id);
EffectNode* parent_node = parent(node);
« no previous file with comments | « cc/trees/property_tree.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698