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/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 std::unique_ptr<AnimationEvents> events) override; | 99 std::unique_ptr<AnimationEvents> events) override; |
100 bool IsInsideDraw() override; | 100 bool IsInsideDraw() override; |
101 void RenewTreePriority() override {} | 101 void RenewTreePriority() override {} |
102 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 102 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
103 base::TimeDelta delay) override {} | 103 base::TimeDelta delay) override {} |
104 void DidActivateSyncTree() override; | 104 void DidActivateSyncTree() override; |
105 void WillPrepareTiles() override; | 105 void WillPrepareTiles() override; |
106 void DidPrepareTiles() override; | 106 void DidPrepareTiles() override; |
107 void DidCompletePageScaleAnimationOnImplThread() override; | 107 void DidCompletePageScaleAnimationOnImplThread() override; |
108 void OnDrawForOutputSurface(bool resourceless_software_draw) override; | 108 void OnDrawForOutputSurface(bool resourceless_software_draw) override; |
109 void PostFrameTimingEventsOnImplThread( | |
110 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | |
111 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | |
112 override; | |
113 | 109 |
114 void RequestNewOutputSurface(); | 110 void RequestNewOutputSurface(); |
115 | 111 |
116 // Called by the legacy path where RenderWidget does the scheduling. | 112 // Called by the legacy path where RenderWidget does the scheduling. |
117 void CompositeImmediately(base::TimeTicks frame_begin_time); | 113 void CompositeImmediately(base::TimeTicks frame_begin_time); |
118 | 114 |
119 protected: | 115 protected: |
120 SingleThreadProxy(LayerTreeHost* layer_tree_host, | 116 SingleThreadProxy(LayerTreeHost* layer_tree_host, |
121 LayerTreeHostSingleThreadClient* client, | 117 LayerTreeHostSingleThreadClient* client, |
122 TaskRunnerProvider* task_runner_provider); | 118 TaskRunnerProvider* task_runner_provider); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 private: | 236 private: |
241 DebugScopedSetImplThread impl_thread_; | 237 DebugScopedSetImplThread impl_thread_; |
242 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 238 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
243 | 239 |
244 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 240 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
245 }; | 241 }; |
246 | 242 |
247 } // namespace cc | 243 } // namespace cc |
248 | 244 |
249 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 245 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |