| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Called by the legacy path where RenderWidget does the scheduling. | 92 // Called by the legacy path where RenderWidget does the scheduling. |
| 93 void CompositeImmediately(base::TimeTicks frame_begin_time); | 93 void CompositeImmediately(base::TimeTicks frame_begin_time); |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 SingleThreadProxy( | 96 SingleThreadProxy( |
| 97 LayerTreeHost* layer_tree_host, | 97 LayerTreeHost* layer_tree_host, |
| 98 LayerTreeHostSingleThreadClient* client, | 98 LayerTreeHostSingleThreadClient* client, |
| 99 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 99 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
| 100 | 100 |
| 101 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); | 101 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); |
| 102 bool DoComposite(LayerTreeHostImpl::FrameData* frame); | 102 bool DoComposite(base::TimeTicks frame_begin_time, |
| 103 LayerTreeHostImpl::FrameData* frame); |
| 103 void DidSwapFrame(); | 104 void DidSwapFrame(); |
| 104 | 105 |
| 105 bool ShouldComposite() const; | 106 bool ShouldComposite() const; |
| 106 void UpdateBackgroundAnimateTicking(); | 107 void UpdateBackgroundAnimateTicking(); |
| 107 | 108 |
| 108 // Accessed on main thread only. | 109 // Accessed on main thread only. |
| 109 LayerTreeHost* layer_tree_host_; | 110 LayerTreeHost* layer_tree_host_; |
| 110 LayerTreeHostSingleThreadClient* client_; | 111 LayerTreeHostSingleThreadClient* client_; |
| 111 | 112 |
| 112 // Used on the Thread, but checked on main thread during | 113 // Used on the Thread, but checked on main thread during |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 private: | 179 private: |
| 179 DebugScopedSetImplThread impl_thread_; | 180 DebugScopedSetImplThread impl_thread_; |
| 180 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 181 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 181 | 182 |
| 182 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 183 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace cc | 186 } // namespace cc |
| 186 | 187 |
| 187 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 188 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |