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

Side by Side Diff: components/surfaces/surfaces_scheduler.h

Issue 1138563002: Add DisplayScheduler for Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rendererLatencyRecoveryHeuristic
Patch Set: rebase Created 5 years, 7 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 | « components/surfaces/display_impl.cc ('k') | components/surfaces/surfaces_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 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_SURFACES_SURFACES_SCHEDULER_H_ 5 #ifndef COMPONENTS_SURFACES_SURFACES_SCHEDULER_H_
6 #define COMPONENTS_SURFACES_SURFACES_SCHEDULER_H_ 6 #define COMPONENTS_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
18 class SurfacesScheduler : public cc::SchedulerClient { 19 class SurfacesScheduler : public cc::SchedulerClient {
19 public: 20 public:
20 SurfacesScheduler(); 21 SurfacesScheduler();
21 ~SurfacesScheduler() override; 22 ~SurfacesScheduler() override;
22 23
23 void SetNeedsDraw(); 24 void SetNeedsDraw();
24 25
25 void OnVSyncParametersUpdated(base::TimeTicks timebase, 26 void OnVSyncParametersUpdated(base::TimeTicks timebase,
26 base::TimeDelta interval); 27 base::TimeDelta interval);
27 28
(...skipping 22 matching lines...) Expand all
50 std::set<cc::Display*> displays_; 51 std::set<cc::Display*> displays_;
51 scoped_ptr<cc::Scheduler> scheduler_; 52 scoped_ptr<cc::Scheduler> scheduler_;
52 base::TimeDelta draw_estimate_; 53 base::TimeDelta draw_estimate_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(SurfacesScheduler); 55 DISALLOW_COPY_AND_ASSIGN(SurfacesScheduler);
55 }; 56 };
56 57
57 } // namespace mojo 58 } // namespace mojo
58 59
59 #endif // COMPONENTS_SURFACES_SURFACES_SCHEDULER_H_ 60 #endif // COMPONENTS_SURFACES_SURFACES_SCHEDULER_H_
OLDNEW
« no previous file with comments | « components/surfaces/display_impl.cc ('k') | components/surfaces/surfaces_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698