OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_LAYER_TREE_MUTATOR_H_ | 5 #ifndef CC_TREES_LAYER_TREE_MUTATOR_H_ |
6 #define CC_TREES_LAYER_TREE_MUTATOR_H_ | 6 #define CC_TREES_LAYER_TREE_MUTATOR_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/cc_export.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 class LayerTreeImpl; | 14 class LayerTreeImpl; |
15 | 15 |
16 class LayerTreeMutatorClient { | 16 class LayerTreeMutatorClient { |
17 public: | 17 public: |
18 // This is necessary because it forces an impl frame. We couldn't, for | 18 // This is necessary because it forces an impl frame. We couldn't, for |
19 // example, just assume that we will "always mutate" and early-out in the | 19 // example, just assume that we will "always mutate" and early-out in the |
20 // mutator if there was nothing to do because we won't always be producing | 20 // mutator if there was nothing to do because we won't always be producing |
(...skipping 10 matching lines...) Expand all Loading... |
31 virtual void SetClient(LayerTreeMutatorClient* client) = 0; | 31 virtual void SetClient(LayerTreeMutatorClient* client) = 0; |
32 | 32 |
33 // Returns a callback which is responsible for applying layer tree mutations | 33 // Returns a callback which is responsible for applying layer tree mutations |
34 // to DOM elements. | 34 // to DOM elements. |
35 virtual base::Closure TakeMutations() = 0; | 35 virtual base::Closure TakeMutations() = 0; |
36 }; | 36 }; |
37 | 37 |
38 } // namespace cc | 38 } // namespace cc |
39 | 39 |
40 #endif // CC_TREES_LAYER_TREE_MUTATOR_H_ | 40 #endif // CC_TREES_LAYER_TREE_MUTATOR_H_ |
OLD | NEW |