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

Unified Diff: cc/animation/element_animations.cc

Issue 1893253002: CC Animation: Make LayerAnimationController to have just one event observer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rc
Patch Set: 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/element_animations.h ('k') | cc/animation/layer_animation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/element_animations.cc
diff --git a/cc/animation/element_animations.cc b/cc/animation/element_animations.cc
index cde0788217d85a7d8689ba1bfc249fe5bca6ae7f..8b07e4ed99c8bbd08b6201567c1995f3bb63715c 100644
--- a/cc/animation/element_animations.cc
+++ b/cc/animation/element_animations.cc
@@ -143,14 +143,9 @@ Animation* ElementAnimations::GetAnimationById(int animation_id) const {
return layer_animation_controller_->GetAnimationById(animation_id);
}
-void ElementAnimations::AddEventObserver(
+void ElementAnimations::SetEventObserver(
LayerAnimationEventObserver* observer) {
- layer_animation_controller_->AddEventObserver(observer);
-}
-
-void ElementAnimations::RemoveEventObserver(
- LayerAnimationEventObserver* observer) {
- layer_animation_controller_->RemoveEventObserver(observer);
+ layer_animation_controller_->SetEventObserver(observer);
}
void ElementAnimations::OnFilterAnimated(LayerTreeType tree_type,
« no previous file with comments | « cc/animation/element_animations.h ('k') | cc/animation/layer_animation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698