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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual void DidManageTiles() OVERRIDE {} | 84 virtual void DidManageTiles() OVERRIDE {} |
85 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {} | 85 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE {} |
86 | 86 |
87 // Called by the legacy path where RenderWidget does the scheduling. | 87 // Called by the legacy path where RenderWidget does the scheduling. |
88 void CompositeImmediately(base::TimeTicks frame_begin_time); | 88 void CompositeImmediately(base::TimeTicks frame_begin_time); |
89 | 89 |
90 private: | 90 private: |
91 SingleThreadProxy(LayerTreeHost* layer_tree_host, | 91 SingleThreadProxy(LayerTreeHost* layer_tree_host, |
92 LayerTreeHostSingleThreadClient* client); | 92 LayerTreeHostSingleThreadClient* client); |
93 | 93 |
94 bool CommitAndComposite(base::TimeTicks frame_begin_time, | |
95 LayerTreeHostImpl::FrameData* frame); | |
96 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); | 94 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); |
97 bool DoComposite(base::TimeTicks frame_begin_time, | 95 bool DoComposite(base::TimeTicks frame_begin_time, |
98 LayerTreeHostImpl::FrameData* frame); | 96 LayerTreeHostImpl::FrameData* frame); |
99 void DidSwapFrame(); | 97 void DidSwapFrame(); |
100 | 98 |
101 bool ShouldComposite() const; | 99 bool ShouldComposite() const; |
102 void UpdateBackgroundAnimateTicking(); | 100 void UpdateBackgroundAnimateTicking(); |
103 | 101 |
104 // Accessed on main thread only. | 102 // Accessed on main thread only. |
105 LayerTreeHost* layer_tree_host_; | 103 LayerTreeHost* layer_tree_host_; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 private: | 172 private: |
175 DebugScopedSetImplThread impl_thread_; | 173 DebugScopedSetImplThread impl_thread_; |
176 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 174 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
177 | 175 |
178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 176 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
179 }; | 177 }; |
180 | 178 |
181 } // namespace cc | 179 } // namespace cc |
182 | 180 |
183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 181 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |