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

Side by Side Diff: cc/trees/mutator_host_client.h

Issue 1413003002: CC Animations: Fix AnimationHost mode integration with Property Trees. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: An attempt to fix weird EXPECT_EQ compilation errors. Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation_timelines.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_MUTATOR_HOST_CLIENT_H_ 5 #ifndef CC_TREES_MUTATOR_HOST_CLIENT_H_
6 #define CC_TREES_MUTATOR_HOST_CLIENT_H_ 6 #define CC_TREES_MUTATOR_HOST_CLIENT_H_
7 7
8 namespace gfx { 8 namespace gfx {
9 class Transform; 9 class Transform;
10 class ScrollOffset; 10 class ScrollOffset;
11 } 11 }
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class FilterOperations; 15 class FilterOperations;
16 class Layer; 16 class Layer;
17 17
18 enum class LayerTreeType { ACTIVE, PENDING }; 18 enum class LayerTreeType { ACTIVE, PENDING };
19 19
20 class MutatorHostClient { 20 class MutatorHostClient {
21 public: 21 public:
22 virtual bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const = 0; 22 virtual bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const = 0;
23 virtual void SetMutatorsNeedCommit() = 0; 23 virtual void SetMutatorsNeedCommit() = 0;
24 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0;
24 25
25 virtual void SetLayerFilterMutated(int layer_id, 26 virtual void SetLayerFilterMutated(int layer_id,
26 LayerTreeType tree_type, 27 LayerTreeType tree_type,
27 const FilterOperations& filters) = 0; 28 const FilterOperations& filters) = 0;
28 virtual void SetLayerOpacityMutated(int layer_id, 29 virtual void SetLayerOpacityMutated(int layer_id,
29 LayerTreeType tree_type, 30 LayerTreeType tree_type,
30 float opacity) = 0; 31 float opacity) = 0;
31 virtual void SetLayerTransformMutated(int layer_id, 32 virtual void SetLayerTransformMutated(int layer_id,
32 LayerTreeType tree_type, 33 LayerTreeType tree_type,
33 const gfx::Transform& transform) = 0; 34 const gfx::Transform& transform) = 0;
34 virtual void SetLayerScrollOffsetMutated( 35 virtual void SetLayerScrollOffsetMutated(
35 int layer_id, 36 int layer_id,
36 LayerTreeType tree_type, 37 LayerTreeType tree_type,
37 const gfx::ScrollOffset& scroll_offset) = 0; 38 const gfx::ScrollOffset& scroll_offset) = 0;
38 39
39 virtual void LayerTransformIsPotentiallyAnimatingChanged( 40 virtual void LayerTransformIsPotentiallyAnimatingChanged(
40 int layer_id, 41 int layer_id,
41 LayerTreeType tree_type, 42 LayerTreeType tree_type,
42 bool is_animating) = 0; 43 bool is_animating) = 0;
43 44
44 virtual void ScrollOffsetAnimationFinished() = 0; 45 virtual void ScrollOffsetAnimationFinished() = 0;
45 virtual gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const = 0; 46 virtual gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const = 0;
46 }; 47 };
47 48
48 } // namespace cc 49 } // namespace cc
49 50
50 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ 51 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation_timelines.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698