| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void CompositeImmediately(base::TimeTicks frame_begin_time); | 114 void CompositeImmediately(base::TimeTicks frame_begin_time); |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 SingleThreadProxy( | 117 SingleThreadProxy( |
| 118 LayerTreeHost* layer_tree_host, | 118 LayerTreeHost* layer_tree_host, |
| 119 LayerTreeHostSingleThreadClient* client, | 119 LayerTreeHostSingleThreadClient* client, |
| 120 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 120 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
| 121 | 121 |
| 122 void BeginMainFrame(); | 122 void BeginMainFrame(); |
| 123 void BeginMainFrameAbortedOnImplThread(); | 123 void BeginMainFrameAbortedOnImplThread(); |
| 124 void DoCommit(base::TimeTicks frame_begin_time); | 124 void DoCommit(const BeginFrameArgs& begin_frame_args); |
| 125 DrawResult DoComposite(base::TimeTicks frame_begin_time, | 125 DrawResult DoComposite(base::TimeTicks frame_begin_time, |
| 126 LayerTreeHostImpl::FrameData* frame); | 126 LayerTreeHostImpl::FrameData* frame); |
| 127 void DoSwap(); | 127 void DoSwap(); |
| 128 void DidCommitAndDrawFrame(); | 128 void DidCommitAndDrawFrame(); |
| 129 | 129 |
| 130 bool ShouldComposite() const; | 130 bool ShouldComposite() const; |
| 131 void UpdateBackgroundAnimateTicking(); | 131 void UpdateBackgroundAnimateTicking(); |
| 132 | 132 |
| 133 // Accessed on main thread only. | 133 // Accessed on main thread only. |
| 134 LayerTreeHost* layer_tree_host_; | 134 LayerTreeHost* layer_tree_host_; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 private: | 212 private: |
| 213 DebugScopedSetImplThread impl_thread_; | 213 DebugScopedSetImplThread impl_thread_; |
| 214 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 214 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 215 | 215 |
| 216 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 216 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 } // namespace cc | 219 } // namespace cc |
| 220 | 220 |
| 221 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 221 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |