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

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

Issue 1841083007: Remove SendBeginFramesToChildren plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler_output_surface_client_set_beginframesource
Patch Set: Remove some comments Created 4 years, 8 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void SetNextCommitWaitsForActivation() override; 49 void SetNextCommitWaitsForActivation() override;
50 void NotifyInputThrottledUntilCommit() override {} 50 void NotifyInputThrottledUntilCommit() override {}
51 void SetDeferCommits(bool defer_commits) override; 51 void SetDeferCommits(bool defer_commits) override;
52 bool CommitRequested() const override; 52 bool CommitRequested() const override;
53 bool BeginMainFrameRequested() const override; 53 bool BeginMainFrameRequested() const override;
54 void MainThreadHasStoppedFlinging() override {} 54 void MainThreadHasStoppedFlinging() override {}
55 void Start(scoped_ptr<BeginFrameSource> external_begin_frame_source) override; 55 void Start(scoped_ptr<BeginFrameSource> external_begin_frame_source) override;
56 void Stop() override; 56 void Stop() override;
57 bool SupportsImplScrolling() const override; 57 bool SupportsImplScrolling() const override;
58 bool MainFrameWillHappenForTesting() override; 58 bool MainFrameWillHappenForTesting() override;
59 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override;
60 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; 59 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override;
61 void UpdateTopControlsState(TopControlsState constraints, 60 void UpdateTopControlsState(TopControlsState constraints,
62 TopControlsState current, 61 TopControlsState current,
63 bool animate) override; 62 bool animate) override;
64 void SetOutputIsSecure(bool output_is_secure) override; 63 void SetOutputIsSecure(bool output_is_secure) override;
65 64
66 // SchedulerClient implementation 65 // SchedulerClient implementation
67 void WillBeginImplFrame(const BeginFrameArgs& args) override; 66 void WillBeginImplFrame(const BeginFrameArgs& args) override;
68 void DidFinishImplFrame() override; 67 void DidFinishImplFrame() override;
69 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; 68 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override;
70 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 69 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
71 DrawResult ScheduledActionDrawAndSwapForced() override; 70 DrawResult ScheduledActionDrawAndSwapForced() override;
72 void ScheduledActionCommit() override; 71 void ScheduledActionCommit() override;
73 void ScheduledActionActivateSyncTree() override; 72 void ScheduledActionActivateSyncTree() override;
74 void ScheduledActionBeginOutputSurfaceCreation() override; 73 void ScheduledActionBeginOutputSurfaceCreation() override;
75 void ScheduledActionPrepareTiles() override; 74 void ScheduledActionPrepareTiles() override;
76 void ScheduledActionInvalidateOutputSurface() override; 75 void ScheduledActionInvalidateOutputSurface() override;
77 void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
78 void SendBeginMainFrameNotExpectedSoon() override; 76 void SendBeginMainFrameNotExpectedSoon() override;
79 77
80 // LayerTreeHostImplClient implementation 78 // LayerTreeHostImplClient implementation
81 void UpdateRendererCapabilitiesOnImplThread() override; 79 void UpdateRendererCapabilitiesOnImplThread() override;
82 void DidLoseOutputSurfaceOnImplThread() override; 80 void DidLoseOutputSurfaceOnImplThread() override;
83 void CommitVSyncParameters(base::TimeTicks timebase, 81 void CommitVSyncParameters(base::TimeTicks timebase,
84 base::TimeDelta interval) override; 82 base::TimeDelta interval) override;
85 void SetBeginFrameSource(BeginFrameSource* source) override; 83 void SetBeginFrameSource(BeginFrameSource* source) override;
86 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 84 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
87 void DidSwapBuffersOnImplThread() override; 85 void DidSwapBuffersOnImplThread() override;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 private: 237 private:
240 DebugScopedSetImplThread impl_thread_; 238 DebugScopedSetImplThread impl_thread_;
241 DebugScopedSetMainThreadBlocked main_thread_blocked_; 239 DebugScopedSetMainThreadBlocked main_thread_blocked_;
242 240
243 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 241 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
244 }; 242 };
245 243
246 } // namespace cc 244 } // namespace cc
247 245
248 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 246 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698