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

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

Issue 1536863002: Delete the Surfaces service. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-4
Patch Set: rebase Created 4 years, 10 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 | « services/surfaces/surfaces_output_surface.cc ('k') | services/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SERVICES_SURFACES_SURFACES_SCHEDULER_H_
6 #define MOJO_SERVICES_SURFACES_SURFACES_SCHEDULER_H_
7
8 #include <set>
9
10 #include "cc/scheduler/scheduler.h"
11
12 namespace cc {
13 class Display;
14 }
15
16 namespace surfaces {
17
18 class SurfacesScheduler : public cc::SchedulerClient {
19 public:
20 SurfacesScheduler();
21 ~SurfacesScheduler() override;
22
23 void SetNeedsDraw();
24
25 void OnVSyncParametersUpdated(base::TimeTicks timebase,
26 base::TimeDelta interval);
27
28 void AddDisplay(cc::Display* display);
29 void RemoveDisplay(cc::Display* display);
30
31 private:
32 void WillBeginImplFrame(const cc::BeginFrameArgs& args) override;
33 void ScheduledActionSendBeginMainFrame() override;
34 cc::DrawResult ScheduledActionDrawAndSwapIfPossible() override;
35 cc::DrawResult ScheduledActionDrawAndSwapForced() override;
36 void ScheduledActionAnimate() override;
37 void ScheduledActionCommit() override;
38 void ScheduledActionActivateSyncTree() override;
39 void ScheduledActionBeginOutputSurfaceCreation() override;
40 void ScheduledActionPrepareTiles() override;
41 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override;
42 base::TimeDelta DrawDurationEstimate() override;
43 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
44 base::TimeDelta CommitToActivateDurationEstimate() override;
45 void DidBeginImplFrameDeadline() override;
46 void SendBeginFramesToChildren(const cc::BeginFrameArgs& args) override;
47 void SendBeginMainFrameNotExpectedSoon() override;
48
49 std::set<cc::Display*> displays_;
50 scoped_ptr<cc::Scheduler> scheduler_;
51 base::TimeDelta draw_estimate_;
52
53 DISALLOW_COPY_AND_ASSIGN(SurfacesScheduler);
54 };
55
56 } // namespace mojo
57
58 #endif // MOJO_SERVICES_SURFACES_SURFACES_SCHEDULER_H_
OLDNEW
« no previous file with comments | « services/surfaces/surfaces_output_surface.cc ('k') | services/surfaces/surfaces_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698