| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 DrawResult ScheduledActionDrawAndSwapForced() override; | 69 DrawResult ScheduledActionDrawAndSwapForced() override; |
| 70 void ScheduledActionCommit() override; | 70 void ScheduledActionCommit() override; |
| 71 void ScheduledActionActivateSyncTree() override; | 71 void ScheduledActionActivateSyncTree() override; |
| 72 void ScheduledActionBeginOutputSurfaceCreation() override; | 72 void ScheduledActionBeginOutputSurfaceCreation() override; |
| 73 void ScheduledActionPrepareTiles() override; | 73 void ScheduledActionPrepareTiles() override; |
| 74 void ScheduledActionInvalidateOutputSurface() override; | 74 void ScheduledActionInvalidateOutputSurface() override; |
| 75 void SendBeginMainFrameNotExpectedSoon() override; | 75 void SendBeginMainFrameNotExpectedSoon() override; |
| 76 | 76 |
| 77 // LayerTreeHostImplClient implementation | 77 // LayerTreeHostImplClient implementation |
| 78 void DidLoseOutputSurfaceOnImplThread() override; | 78 void DidLoseOutputSurfaceOnImplThread() override; |
| 79 void CommitVSyncParameters(base::TimeTicks timebase, |
| 80 base::TimeDelta interval) override; |
| 79 void SetBeginFrameSource(BeginFrameSource* source) override; | 81 void SetBeginFrameSource(BeginFrameSource* source) override; |
| 80 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 82 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 81 void DidSwapBuffersCompleteOnImplThread() override; | 83 void DidSwapBuffersCompleteOnImplThread() override; |
| 82 void OnCanDrawStateChanged(bool can_draw) override; | 84 void OnCanDrawStateChanged(bool can_draw) override; |
| 83 void NotifyReadyToActivate() override; | 85 void NotifyReadyToActivate() override; |
| 84 void NotifyReadyToDraw() override; | 86 void NotifyReadyToDraw() override; |
| 85 void SetNeedsRedrawOnImplThread() override; | 87 void SetNeedsRedrawOnImplThread() override; |
| 86 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 88 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 87 void SetNeedsOneBeginImplFrameOnImplThread() override; | 89 void SetNeedsOneBeginImplFrameOnImplThread() override; |
| 88 void SetNeedsPrepareTilesOnImplThread() override; | 90 void SetNeedsPrepareTilesOnImplThread() override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 LayerTreeHostSingleThreadClient* client_; | 130 LayerTreeHostSingleThreadClient* client_; |
| 129 | 131 |
| 130 TaskRunnerProvider* task_runner_provider_; | 132 TaskRunnerProvider* task_runner_provider_; |
| 131 | 133 |
| 132 // Used on the Thread, but checked on main thread during | 134 // Used on the Thread, but checked on main thread during |
| 133 // initialization/shutdown. | 135 // initialization/shutdown. |
| 134 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; | 136 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; |
| 135 | 137 |
| 136 // Accessed from both threads. | 138 // Accessed from both threads. |
| 137 std::unique_ptr<BeginFrameSource> external_begin_frame_source_; | 139 std::unique_ptr<BeginFrameSource> external_begin_frame_source_; |
| 140 std::unique_ptr<BeginFrameSource> unthrottled_begin_frame_source_; |
| 141 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_; |
| 138 std::unique_ptr<Scheduler> scheduler_on_impl_thread_; | 142 std::unique_ptr<Scheduler> scheduler_on_impl_thread_; |
| 139 | 143 |
| 140 std::unique_ptr<BlockingTaskRunner::CapturePostTasks> | 144 std::unique_ptr<BlockingTaskRunner::CapturePostTasks> |
| 141 commit_blocking_task_runner_; | 145 commit_blocking_task_runner_; |
| 142 bool next_frame_is_newly_committed_frame_; | 146 bool next_frame_is_newly_committed_frame_; |
| 143 | 147 |
| 144 #if DCHECK_IS_ON() | 148 #if DCHECK_IS_ON() |
| 145 bool inside_impl_frame_; | 149 bool inside_impl_frame_; |
| 146 #endif | 150 #endif |
| 147 bool inside_draw_; | 151 bool inside_draw_; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 private: | 240 private: |
| 237 DebugScopedSetImplThread impl_thread_; | 241 DebugScopedSetImplThread impl_thread_; |
| 238 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 242 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 239 | 243 |
| 240 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 244 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 241 }; | 245 }; |
| 242 | 246 |
| 243 } // namespace cc | 247 } // namespace cc |
| 244 | 248 |
| 245 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 249 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |