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

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

Issue 723713003: cc: Add SetChildrenNeedBeginFrames() & SendBeginFramesToChildren() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 bool BeginMainFrameRequested() const override; 168 bool BeginMainFrameRequested() const override;
169 void MainThreadHasStoppedFlinging() override; 169 void MainThreadHasStoppedFlinging() override;
170 void Start() override; 170 void Start() override;
171 void Stop() override; 171 void Stop() override;
172 size_t MaxPartialTextureUpdates() const override; 172 size_t MaxPartialTextureUpdates() const override;
173 void ForceSerializeOnSwapBuffers() override; 173 void ForceSerializeOnSwapBuffers() override;
174 bool SupportsImplScrolling() const override; 174 bool SupportsImplScrolling() const override;
175 void SetDebugState(const LayerTreeDebugState& debug_state) override; 175 void SetDebugState(const LayerTreeDebugState& debug_state) override;
176 void AsValueInto(base::debug::TracedValue* value) const override; 176 void AsValueInto(base::debug::TracedValue* value) const override;
177 bool MainFrameWillHappenForTesting() override; 177 bool MainFrameWillHappenForTesting() override;
178 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override;
178 179
179 // LayerTreeHostImplClient implementation 180 // LayerTreeHostImplClient implementation
180 void UpdateRendererCapabilitiesOnImplThread() override; 181 void UpdateRendererCapabilitiesOnImplThread() override;
181 void DidLoseOutputSurfaceOnImplThread() override; 182 void DidLoseOutputSurfaceOnImplThread() override;
182 void CommitVSyncParameters(base::TimeTicks timebase, 183 void CommitVSyncParameters(base::TimeTicks timebase,
183 base::TimeDelta interval) override; 184 base::TimeDelta interval) override;
184 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 185 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
185 void SetMaxSwapsPendingOnImplThread(int max) override; 186 void SetMaxSwapsPendingOnImplThread(int max) override;
186 void DidSwapBuffersOnImplThread() override; 187 void DidSwapBuffersOnImplThread() override;
187 void DidSwapBuffersCompleteOnImplThread() override; 188 void DidSwapBuffersCompleteOnImplThread() override;
(...skipping 29 matching lines...) Expand all
217 void ScheduledActionCommit() override; 218 void ScheduledActionCommit() override;
218 void ScheduledActionUpdateVisibleTiles() override; 219 void ScheduledActionUpdateVisibleTiles() override;
219 void ScheduledActionActivateSyncTree() override; 220 void ScheduledActionActivateSyncTree() override;
220 void ScheduledActionBeginOutputSurfaceCreation() override; 221 void ScheduledActionBeginOutputSurfaceCreation() override;
221 void ScheduledActionManageTiles() override; 222 void ScheduledActionManageTiles() override;
222 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; 223 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override;
223 base::TimeDelta DrawDurationEstimate() override; 224 base::TimeDelta DrawDurationEstimate() override;
224 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; 225 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
225 base::TimeDelta CommitToActivateDurationEstimate() override; 226 base::TimeDelta CommitToActivateDurationEstimate() override;
226 void DidBeginImplFrameDeadline() override; 227 void DidBeginImplFrameDeadline() override;
228 void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
227 229
228 // ResourceUpdateControllerClient implementation 230 // ResourceUpdateControllerClient implementation
229 void ReadyToFinalizeTextureUpdates() override; 231 void ReadyToFinalizeTextureUpdates() override;
230 232
231 protected: 233 protected:
232 ThreadProxy( 234 ThreadProxy(
233 LayerTreeHost* layer_tree_host, 235 LayerTreeHost* layer_tree_host,
234 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 236 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
235 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 237 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
236 scoped_ptr<BeginFrameSource> external_begin_frame_source); 238 scoped_ptr<BeginFrameSource> external_begin_frame_source);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 298
297 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 299 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
298 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 300 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
299 301
300 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 302 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
301 }; 303 };
302 304
303 } // namespace cc 305 } // namespace cc
304 306
305 #endif // CC_TREES_THREAD_PROXY_H_ 307 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698