OLD | NEW |
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 using ElementId = int; |
| 19 |
18 enum class LayerTreeType { ACTIVE, PENDING }; | 20 enum class LayerTreeType { ACTIVE, PENDING }; |
19 | 21 |
20 class MutatorHostClient { | 22 class MutatorHostClient { |
21 public: | 23 public: |
22 virtual bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const = 0; | 24 virtual bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const = 0; |
23 virtual void SetMutatorsNeedCommit() = 0; | 25 virtual void SetMutatorsNeedCommit() = 0; |
24 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0; | 26 virtual void SetMutatorsNeedRebuildPropertyTrees() = 0; |
25 | 27 |
26 virtual void SetLayerFilterMutated(int layer_id, | 28 virtual void SetLayerFilterMutated(int layer_id, |
27 LayerTreeType tree_type, | 29 LayerTreeType tree_type, |
(...skipping 14 matching lines...) Expand all Loading... |
42 LayerTreeType tree_type, | 44 LayerTreeType tree_type, |
43 bool is_animating) = 0; | 45 bool is_animating) = 0; |
44 | 46 |
45 virtual void ScrollOffsetAnimationFinished() = 0; | 47 virtual void ScrollOffsetAnimationFinished() = 0; |
46 virtual gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const = 0; | 48 virtual gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const = 0; |
47 }; | 49 }; |
48 | 50 |
49 } // namespace cc | 51 } // namespace cc |
50 | 52 |
51 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ | 53 #endif // CC_TREES_MUTATOR_HOST_CLIENT_H_ |
OLD | NEW |