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_PROXY_IMPL_H_ | 5 #ifndef CC_TREES_PROXY_IMPL_H_ |
6 #define CC_TREES_PROXY_IMPL_H_ | 6 #define CC_TREES_PROXY_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 CommitEarlyOutReason reason, | 45 CommitEarlyOutReason reason, |
46 base::TimeTicks main_thread_start_time, | 46 base::TimeTicks main_thread_start_time, |
47 std::vector<std::unique_ptr<SwapPromise>> swap_promises); | 47 std::vector<std::unique_ptr<SwapPromise>> swap_promises); |
48 void SetVisibleOnImpl(bool visible); | 48 void SetVisibleOnImpl(bool visible); |
49 void ReleaseCompositorFrameSinkOnImpl(CompletionEvent* completion); | 49 void ReleaseCompositorFrameSinkOnImpl(CompletionEvent* completion); |
50 void FinishGLOnImpl(CompletionEvent* completion); | 50 void FinishGLOnImpl(CompletionEvent* completion); |
51 void NotifyReadyToCommitOnImpl(CompletionEvent* completion, | 51 void NotifyReadyToCommitOnImpl(CompletionEvent* completion, |
52 LayerTreeHost* layer_tree_host, | 52 LayerTreeHost* layer_tree_host, |
53 base::TimeTicks main_thread_start_time, | 53 base::TimeTicks main_thread_start_time, |
54 bool hold_commit_for_activation); | 54 bool hold_commit_for_activation); |
| 55 void ResetTrees(); |
55 | 56 |
56 void MainFrameWillHappenOnImplForTesting(CompletionEvent* completion, | 57 void MainFrameWillHappenOnImplForTesting(CompletionEvent* completion, |
57 bool* main_frame_will_happen); | 58 bool* main_frame_will_happen); |
58 | 59 |
59 private: | 60 private: |
60 // The members of this struct should be accessed on the impl thread only when | 61 // The members of this struct should be accessed on the impl thread only when |
61 // the main thread is blocked for a commit. | 62 // the main thread is blocked for a commit. |
62 struct BlockedMainCommitOnly { | 63 struct BlockedMainCommitOnly { |
63 BlockedMainCommitOnly(); | 64 BlockedMainCommitOnly(); |
64 ~BlockedMainCommitOnly(); | 65 ~BlockedMainCommitOnly(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 145 |
145 // Used to post tasks to ProxyMain on the main thread. | 146 // Used to post tasks to ProxyMain on the main thread. |
146 base::WeakPtr<ProxyMain> proxy_main_weak_ptr_; | 147 base::WeakPtr<ProxyMain> proxy_main_weak_ptr_; |
147 | 148 |
148 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 149 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
149 }; | 150 }; |
150 | 151 |
151 } // namespace cc | 152 } // namespace cc |
152 | 153 |
153 #endif // CC_TREES_PROXY_IMPL_H_ | 154 #endif // CC_TREES_PROXY_IMPL_H_ |
OLD | NEW |