| 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 MOJO_SERVICES_SURFACES_SURFACES_SCHEDULER_H_ | 5 #ifndef MOJO_SERVICES_SURFACES_SURFACES_SCHEDULER_H_ |
| 6 #define MOJO_SERVICES_SURFACES_SURFACES_SCHEDULER_H_ | 6 #define MOJO_SERVICES_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 } | 14 } |
| 15 | 15 |
| 16 namespace surfaces { | 16 namespace surfaces { |
| 17 | 17 |
| 18 // TODO(brianderson): Reconcile with DisplayScheduler crbug.com/476676 | |
| 19 class SurfacesScheduler : public cc::SchedulerClient { | 18 class SurfacesScheduler : public cc::SchedulerClient { |
| 20 public: | 19 public: |
| 21 SurfacesScheduler(); | 20 SurfacesScheduler(); |
| 22 ~SurfacesScheduler() override; | 21 ~SurfacesScheduler() override; |
| 23 | 22 |
| 24 void SetNeedsDraw(); | 23 void SetNeedsDraw(); |
| 25 | 24 |
| 26 void OnVSyncParametersUpdated(base::TimeTicks timebase, | 25 void OnVSyncParametersUpdated(base::TimeTicks timebase, |
| 27 base::TimeDelta interval); | 26 base::TimeDelta interval); |
| 28 | 27 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 51 std::set<cc::Display*> displays_; | 50 std::set<cc::Display*> displays_; |
| 52 scoped_ptr<cc::Scheduler> scheduler_; | 51 scoped_ptr<cc::Scheduler> scheduler_; |
| 53 base::TimeDelta draw_estimate_; | 52 base::TimeDelta draw_estimate_; |
| 54 | 53 |
| 55 DISALLOW_COPY_AND_ASSIGN(SurfacesScheduler); | 54 DISALLOW_COPY_AND_ASSIGN(SurfacesScheduler); |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 } // namespace mojo | 57 } // namespace mojo |
| 59 | 58 |
| 60 #endif // MOJO_SERVICES_SURFACES_SURFACES_SCHEDULER_H_ | 59 #endif // MOJO_SERVICES_SURFACES_SURFACES_SCHEDULER_H_ |
| OLD | NEW |