OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_ | |
6 #define CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_ | |
7 | |
8 namespace gfx { | |
9 class Transform; | |
10 class ScrollOffset; | |
11 } | |
12 | |
13 namespace cc { | |
14 | |
15 class FilterOperations; | |
16 class Layer; | |
17 | |
18 class LayerTreeMutatorsClient { | |
Ian Vollick
2015/05/05 03:52:07
In future, we'll have a transform/opacity/filter/s
loyso (OOO)
2015/05/05 06:51:19
Sure. We can divide this interface and conquer. Th
| |
19 public: | |
20 virtual bool IsLayerInActiveTree(int layer_id) const = 0; | |
21 virtual bool IsLayerInPendingTree(int layer_id) const = 0; | |
22 virtual void SetMutatorsNeedCommit() = 0; | |
23 | |
24 virtual void SetLayerFilterMutated(int layer_id, | |
25 bool active_tree, | |
26 const FilterOperations& filters) = 0; | |
27 virtual void SetLayerOpacityMutated(int layer_id, | |
28 bool active_tree, | |
29 float opacity) = 0; | |
30 virtual void SetLayerTransformMutated(int layer_id, | |
31 bool active_tree, | |
32 const gfx::Transform& transform) = 0; | |
33 virtual void SetLayerScrollOffsetMutated( | |
34 int layer_id, | |
35 bool active_tree, | |
36 const gfx::ScrollOffset& scroll_offset) = 0; | |
37 }; | |
38 | |
39 } // namespace cc | |
40 | |
41 #endif // CC_TREES_LAYER_TREE_MUTATORS_CLIENT_H_ | |
OLD | NEW |