OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_SCHEDULER_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_SCHEDULER_H_ |
6 #define COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_SCHEDULER_H_ | 6 #define COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_SCHEDULER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "cc/scheduler/scheduler.h" | 10 #include "cc/scheduler/scheduler.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 class Display; | 13 class Display; |
| 14 class RenderingStatsInstrumentation; |
14 } | 15 } |
15 | 16 |
16 namespace surfaces { | 17 namespace surfaces { |
17 | 18 |
18 // TODO(brianderson): Reconcile with DisplayScheduler crbug.com/476676 | 19 // TODO(brianderson): Reconcile with DisplayScheduler crbug.com/476676 |
19 class SurfacesScheduler : public cc::SchedulerClient { | 20 class SurfacesScheduler : public cc::SchedulerClient { |
20 public: | 21 public: |
21 SurfacesScheduler(); | 22 SurfacesScheduler(); |
22 ~SurfacesScheduler() override; | 23 ~SurfacesScheduler() override; |
23 | 24 |
(...skipping 11 matching lines...) Expand all Loading... |
35 void ScheduledActionSendBeginMainFrame() override; | 36 void ScheduledActionSendBeginMainFrame() override; |
36 cc::DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 37 cc::DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
37 cc::DrawResult ScheduledActionDrawAndSwapForced() override; | 38 cc::DrawResult ScheduledActionDrawAndSwapForced() override; |
38 void ScheduledActionAnimate() override; | 39 void ScheduledActionAnimate() override; |
39 void ScheduledActionCommit() override; | 40 void ScheduledActionCommit() override; |
40 void ScheduledActionActivateSyncTree() override; | 41 void ScheduledActionActivateSyncTree() override; |
41 void ScheduledActionBeginOutputSurfaceCreation() override; | 42 void ScheduledActionBeginOutputSurfaceCreation() override; |
42 void ScheduledActionPrepareTiles() override; | 43 void ScheduledActionPrepareTiles() override; |
43 void ScheduledActionInvalidateOutputSurface() override; | 44 void ScheduledActionInvalidateOutputSurface() override; |
44 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 45 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; |
45 base::TimeDelta DrawDurationEstimate() override; | |
46 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | |
47 base::TimeDelta CommitToActivateDurationEstimate() override; | |
48 void SendBeginFramesToChildren(const cc::BeginFrameArgs& args) override; | 46 void SendBeginFramesToChildren(const cc::BeginFrameArgs& args) override; |
49 void SendBeginMainFrameNotExpectedSoon() override; | 47 void SendBeginMainFrameNotExpectedSoon() override; |
50 | 48 |
51 std::set<cc::Display*> displays_; | 49 std::set<cc::Display*> displays_; |
52 scoped_ptr<cc::Scheduler> scheduler_; | 50 scoped_ptr<cc::Scheduler> scheduler_; |
53 base::TimeDelta draw_estimate_; | 51 scoped_ptr<cc::RenderingStatsInstrumentation> |
| 52 rendering_stats_instrumentation_; |
54 | 53 |
55 DISALLOW_COPY_AND_ASSIGN(SurfacesScheduler); | 54 DISALLOW_COPY_AND_ASSIGN(SurfacesScheduler); |
56 }; | 55 }; |
57 | 56 |
58 } // namespace surfaces | 57 } // namespace surfaces |
59 | 58 |
60 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_SCHEDULER_H_ | 59 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_SCHEDULER_H_ |
OLD | NEW |