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

Unified Diff: cc/animation/animation_host.cc

Issue 1912023003: CC Animation: Remove Observers and Observations in namings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observertype
Patch Set: Rename it in .cc comments as well Created 4 years, 8 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/animation/animation.cc ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_host.cc
diff --git a/cc/animation/animation_host.cc b/cc/animation/animation_host.cc
index 2ddbb79a327e9ffb254fb93d16b239f81cc62378..7773736692722f3dd33b25f3bd4f77d3ffb9f4d9 100644
--- a/cc/animation/animation_host.cc
+++ b/cc/animation/animation_host.cc
@@ -230,7 +230,7 @@ void AnimationHost::RegisterPlayerForLayer(int layer_id,
if (element_animations->animation_host() != this) {
element_animations->SetAnimationHost(this);
- element_animations->InitValueObservations();
+ element_animations->InitAffectedElementTypes();
}
element_animations->AddPlayer(player);
@@ -247,7 +247,7 @@ void AnimationHost::UnregisterPlayerForLayer(int layer_id,
element_animations->RemovePlayer(player);
if (element_animations->IsEmpty()) {
- element_animations->ClearValueObservations();
+ element_animations->ClearAffectedElementTypes();
UnregisterElementAnimations(element_animations.get());
element_animations->SetAnimationHost(nullptr);
}
« no previous file with comments | « cc/animation/animation.cc ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698