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

Unified Diff: cc/animation/layer_animation_value_observer.h

Issue 1882733005: CC Animation: Make LayerAnimationController to have just one value observer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@privatelac
Patch Set: Fix codereview issues. 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/layer_animation_controller_unittest.cc ('k') | cc/test/animation_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/layer_animation_value_observer.h
diff --git a/cc/animation/layer_animation_value_observer.h b/cc/animation/layer_animation_value_observer.h
index 092b53b0b9d7ded0561f64c3e3b04e260e068cb9..5228356b9c72781ae86749123eb88971fbd0477e 100644
--- a/cc/animation/layer_animation_value_observer.h
+++ b/cc/animation/layer_animation_value_observer.h
@@ -6,6 +6,7 @@
#define CC_ANIMATION_LAYER_ANIMATION_VALUE_OBSERVER_H_
#include "cc/base/cc_export.h"
+#include "cc/trees/mutator_host_client.h"
namespace gfx {
class ScrollOffset;
@@ -20,14 +21,17 @@ class CC_EXPORT LayerAnimationValueObserver {
public:
virtual ~LayerAnimationValueObserver() {}
- virtual void OnFilterAnimated(const FilterOperations& filters) = 0;
- virtual void OnOpacityAnimated(float opacity) = 0;
- virtual void OnTransformAnimated(const gfx::Transform& transform) = 0;
+ virtual void OnFilterAnimated(LayerTreeType tree_type,
+ const FilterOperations& filters) = 0;
+ virtual void OnOpacityAnimated(LayerTreeType tree_type, float opacity) = 0;
+ virtual void OnTransformAnimated(LayerTreeType tree_type,
+ const gfx::Transform& transform) = 0;
virtual void OnScrollOffsetAnimated(
+ LayerTreeType tree_type,
const gfx::ScrollOffset& scroll_offset) = 0;
virtual void OnAnimationWaitingForDeletion() = 0;
- virtual void OnTransformIsPotentiallyAnimatingChanged(bool is_animating) = 0;
- virtual bool IsActive() const = 0;
+ virtual void OnTransformIsPotentiallyAnimatingChanged(LayerTreeType tree_type,
+ bool is_animating) = 0;
};
} // namespace cc
« no previous file with comments | « cc/animation/layer_animation_controller_unittest.cc ('k') | cc/test/animation_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698