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

Unified Diff: cc/animation/element_animations.h

Issue 2042713002: CC Animation: Activate/deactivate ElementAnimations on Layer addition/removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | cc/animation/element_animations.cc » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/element_animations.h
diff --git a/cc/animation/element_animations.h b/cc/animation/element_animations.h
index f8fdcb9169bdd5f25a0b19dc702af5eeb86cb363..111c734266b02f12dce4fe1c6cac5c427f74d317 100644
--- a/cc/animation/element_animations.h
+++ b/cc/animation/element_animations.h
@@ -125,6 +125,9 @@ class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> {
bool has_element_in_pending_list() const {
return has_element_in_pending_list_;
}
+ bool has_element_in_any_list() const {
+ return has_element_in_active_list_ || has_element_in_pending_list_;
+ }
void set_has_element_in_active_list(bool has_element_in_active_list) {
has_element_in_active_list_ = has_element_in_active_list;
« no previous file with comments | « no previous file | cc/animation/element_animations.cc » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698