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

Side by Side Diff: cc/scheduler/scheduler.h

Issue 1194743002: cc: Remove ResourceUpdateQueue and ResourceUpdateController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resourcequeue: header Created 5 years, 6 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/resources/resource_update_queue.cc ('k') | cc/scheduler/scheduler.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_SCHEDULER_SCHEDULER_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_H_
6 #define CC_SCHEDULER_SCHEDULER_H_ 6 #define CC_SCHEDULER_SCHEDULER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 virtual void WillBeginImplFrame(const BeginFrameArgs& args) = 0; 36 virtual void WillBeginImplFrame(const BeginFrameArgs& args) = 0;
37 virtual void ScheduledActionSendBeginMainFrame() = 0; 37 virtual void ScheduledActionSendBeginMainFrame() = 0;
38 virtual DrawResult ScheduledActionDrawAndSwapIfPossible() = 0; 38 virtual DrawResult ScheduledActionDrawAndSwapIfPossible() = 0;
39 virtual DrawResult ScheduledActionDrawAndSwapForced() = 0; 39 virtual DrawResult ScheduledActionDrawAndSwapForced() = 0;
40 virtual void ScheduledActionAnimate() = 0; 40 virtual void ScheduledActionAnimate() = 0;
41 virtual void ScheduledActionCommit() = 0; 41 virtual void ScheduledActionCommit() = 0;
42 virtual void ScheduledActionActivateSyncTree() = 0; 42 virtual void ScheduledActionActivateSyncTree() = 0;
43 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; 43 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0;
44 virtual void ScheduledActionPrepareTiles() = 0; 44 virtual void ScheduledActionPrepareTiles() = 0;
45 virtual void ScheduledActionInvalidateOutputSurface() = 0; 45 virtual void ScheduledActionInvalidateOutputSurface() = 0;
46 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0;
47 virtual base::TimeDelta DrawDurationEstimate() = 0; 46 virtual base::TimeDelta DrawDurationEstimate() = 0;
48 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0; 47 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0;
49 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0; 48 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0;
50 virtual void DidFinishImplFrame() = 0; 49 virtual void DidFinishImplFrame() = 0;
51 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) = 0; 50 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) = 0;
52 virtual void SendBeginMainFrameNotExpectedSoon() = 0; 51 virtual void SendBeginMainFrameNotExpectedSoon() = 0;
53 52
54 protected: 53 protected:
55 virtual ~SchedulerClient() {} 54 virtual ~SchedulerClient() {}
56 }; 55 };
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 bool MainThreadIsInHighLatencyMode() const { 148 bool MainThreadIsInHighLatencyMode() const {
150 return state_machine_.MainThreadIsInHighLatencyMode(); 149 return state_machine_.MainThreadIsInHighLatencyMode();
151 } 150 }
152 bool BeginImplFrameDeadlinePending() const { 151 bool BeginImplFrameDeadlinePending() const {
153 return !begin_impl_frame_deadline_task_.IsCancelled(); 152 return !begin_impl_frame_deadline_task_.IsCancelled();
154 } 153 }
155 bool ImplLatencyTakesPriority() const { 154 bool ImplLatencyTakesPriority() const {
156 return state_machine_.impl_latency_takes_priority(); 155 return state_machine_.impl_latency_takes_priority();
157 } 156 }
158 157
159 base::TimeTicks AnticipatedDrawTime() const;
160
161 void NotifyBeginMainFrameStarted(); 158 void NotifyBeginMainFrameStarted();
162 159
163 base::TimeTicks LastBeginImplFrameTime(); 160 base::TimeTicks LastBeginImplFrameTime();
164 161
165 void SetDeferCommits(bool defer_commits); 162 void SetDeferCommits(bool defer_commits);
166 163
167 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; 164 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const;
168 void AsValueInto(base::trace_event::TracedValue* value) const override; 165 void AsValueInto(base::trace_event::TracedValue* value) const override;
169 166
170 void SetContinuousPainting(bool continuous_painting) { 167 void SetContinuousPainting(bool continuous_painting) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 253
257 friend class SchedulerFrameSourcesConstructor; 254 friend class SchedulerFrameSourcesConstructor;
258 friend class TestSchedulerFrameSourcesConstructor; 255 friend class TestSchedulerFrameSourcesConstructor;
259 256
260 DISALLOW_COPY_AND_ASSIGN(Scheduler); 257 DISALLOW_COPY_AND_ASSIGN(Scheduler);
261 }; 258 };
262 259
263 } // namespace cc 260 } // namespace cc
264 261
265 #endif // CC_SCHEDULER_SCHEDULER_H_ 262 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/resources/resource_update_queue.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698