OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BASE_SWAP_PROMISE_MONITOR_H_ | 5 #ifndef CC_BASE_SWAP_PROMISE_MONITOR_H_ |
6 #define CC_BASE_SWAP_PROMISE_MONITOR_H_ | 6 #define CC_BASE_SWAP_PROMISE_MONITOR_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 15 matching lines...) Expand all Loading... |
26 // If the monitor lives on the main thread, pass in layer_tree_host | 26 // If the monitor lives on the main thread, pass in layer_tree_host |
27 // and set layer_tree_host_impl to NULL. | 27 // and set layer_tree_host_impl to NULL. |
28 // If the monitor lives on the impl thread, pass in layer_tree_host_impl | 28 // If the monitor lives on the impl thread, pass in layer_tree_host_impl |
29 // and set layer_tree_host to NULL. | 29 // and set layer_tree_host to NULL. |
30 SwapPromiseMonitor(LayerTreeHost* layer_tree_host, | 30 SwapPromiseMonitor(LayerTreeHost* layer_tree_host, |
31 LayerTreeHostImpl* layer_tree_host_impl); | 31 LayerTreeHostImpl* layer_tree_host_impl); |
32 virtual ~SwapPromiseMonitor(); | 32 virtual ~SwapPromiseMonitor(); |
33 | 33 |
34 virtual void OnSetNeedsCommitOnMain() = 0; | 34 virtual void OnSetNeedsCommitOnMain() = 0; |
35 virtual void OnSetNeedsRedrawOnImpl() = 0; | 35 virtual void OnSetNeedsRedrawOnImpl() = 0; |
36 virtual void OnForwardScrollUpdateToMainThreadOnImpl() = 0; | |
37 | 36 |
38 protected: | 37 protected: |
39 LayerTreeHost* layer_tree_host_; | 38 LayerTreeHost* layer_tree_host_; |
40 LayerTreeHostImpl* layer_tree_host_impl_; | 39 LayerTreeHostImpl* layer_tree_host_impl_; |
41 }; | 40 }; |
42 | 41 |
43 } // namespace cc | 42 } // namespace cc |
44 | 43 |
45 #endif // CC_BASE_SWAP_PROMISE_MONITOR_H_ | 44 #endif // CC_BASE_SWAP_PROMISE_MONITOR_H_ |
OLD | NEW |