Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Side by Side Diff: cc/trees/single_thread_proxy.h

Issue 2083423006: Remove default begin frame sources from the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/proxy_impl.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
81 void SetBeginFrameSource(BeginFrameSource* source) override; 79 void SetBeginFrameSource(BeginFrameSource* source) override;
82 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 80 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
83 void DidSwapBuffersCompleteOnImplThread() override; 81 void DidSwapBuffersCompleteOnImplThread() override;
84 void OnCanDrawStateChanged(bool can_draw) override; 82 void OnCanDrawStateChanged(bool can_draw) override;
85 void NotifyReadyToActivate() override; 83 void NotifyReadyToActivate() override;
86 void NotifyReadyToDraw() override; 84 void NotifyReadyToDraw() override;
87 void SetNeedsRedrawOnImplThread() override; 85 void SetNeedsRedrawOnImplThread() override;
88 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 86 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
89 void SetNeedsOneBeginImplFrameOnImplThread() override; 87 void SetNeedsOneBeginImplFrameOnImplThread() override;
90 void SetNeedsPrepareTilesOnImplThread() override; 88 void SetNeedsPrepareTilesOnImplThread() override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 LayerTreeHostSingleThreadClient* client_; 128 LayerTreeHostSingleThreadClient* client_;
131 129
132 TaskRunnerProvider* task_runner_provider_; 130 TaskRunnerProvider* task_runner_provider_;
133 131
134 // Used on the Thread, but checked on main thread during 132 // Used on the Thread, but checked on main thread during
135 // initialization/shutdown. 133 // initialization/shutdown.
136 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; 134 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_;
137 135
138 // Accessed from both threads. 136 // Accessed from both threads.
139 std::unique_ptr<BeginFrameSource> external_begin_frame_source_; 137 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_;
142 std::unique_ptr<Scheduler> scheduler_on_impl_thread_; 138 std::unique_ptr<Scheduler> scheduler_on_impl_thread_;
143 139
144 std::unique_ptr<BlockingTaskRunner::CapturePostTasks> 140 std::unique_ptr<BlockingTaskRunner::CapturePostTasks>
145 commit_blocking_task_runner_; 141 commit_blocking_task_runner_;
146 bool next_frame_is_newly_committed_frame_; 142 bool next_frame_is_newly_committed_frame_;
147 143
148 #if DCHECK_IS_ON() 144 #if DCHECK_IS_ON()
149 bool inside_impl_frame_; 145 bool inside_impl_frame_;
150 #endif 146 #endif
151 bool inside_draw_; 147 bool inside_draw_;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « cc/trees/proxy_impl.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698