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_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual void ScheduledActionCommit() = 0; | 42 virtual void ScheduledActionCommit() = 0; |
43 virtual void ScheduledActionActivateSyncTree() = 0; | 43 virtual void ScheduledActionActivateSyncTree() = 0; |
44 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; | 44 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; |
45 virtual void ScheduledActionPrepareTiles() = 0; | 45 virtual void ScheduledActionPrepareTiles() = 0; |
46 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0; | 46 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0; |
47 virtual base::TimeDelta DrawDurationEstimate() = 0; | 47 virtual base::TimeDelta DrawDurationEstimate() = 0; |
48 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0; | 48 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0; |
49 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0; | 49 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0; |
50 virtual void DidBeginImplFrameDeadline() = 0; | 50 virtual void DidBeginImplFrameDeadline() = 0; |
51 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) = 0; | 51 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) = 0; |
| 52 virtual void SendBeginMainFrameNotExpectedSoon() = 0; |
52 | 53 |
53 protected: | 54 protected: |
54 virtual ~SchedulerClient() {} | 55 virtual ~SchedulerClient() {} |
55 }; | 56 }; |
56 | 57 |
57 class Scheduler; | 58 class Scheduler; |
58 // This class exists to allow tests to override the frame source construction. | 59 // This class exists to allow tests to override the frame source construction. |
59 // A virtual method can't be used as this needs to happen in the constructor | 60 // A virtual method can't be used as this needs to happen in the constructor |
60 // (see C++ FAQ / Section 23 - http://goo.gl/fnrwom for why). | 61 // (see C++ FAQ / Section 23 - http://goo.gl/fnrwom for why). |
61 // This class exists solely long enough to construct the frame sources. | 62 // This class exists solely long enough to construct the frame sources. |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 259 |
259 friend class SchedulerFrameSourcesConstructor; | 260 friend class SchedulerFrameSourcesConstructor; |
260 friend class TestSchedulerFrameSourcesConstructor; | 261 friend class TestSchedulerFrameSourcesConstructor; |
261 | 262 |
262 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 263 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
263 }; | 264 }; |
264 | 265 |
265 } // namespace cc | 266 } // namespace cc |
266 | 267 |
267 #endif // CC_SCHEDULER_SCHEDULER_H_ | 268 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |