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 #include "components/mus/surfaces/surfaces_scheduler.h" | 5 #include "components/mus/surfaces/surfaces_scheduler.h" |
6 | 6 |
7 #include "cc/debug/rendering_stats_instrumentation.h" | 7 #include "cc/debug/rendering_stats_instrumentation.h" |
8 #include "cc/scheduler/compositor_timing_history.h" | 8 #include "cc/scheduler/compositor_timing_history.h" |
9 #include "cc/surfaces/display.h" | 9 #include "cc/surfaces/display.h" |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void SurfacesScheduler::RemoveDisplay(cc::Display* display) { | 52 void SurfacesScheduler::RemoveDisplay(cc::Display* display) { |
53 auto it = displays_.find(display); | 53 auto it = displays_.find(display); |
54 DCHECK(it != displays_.end()); | 54 DCHECK(it != displays_.end()); |
55 displays_.erase(it); | 55 displays_.erase(it); |
56 } | 56 } |
57 | 57 |
58 void SurfacesScheduler::WillBeginImplFrame(const cc::BeginFrameArgs& args) {} | 58 void SurfacesScheduler::WillBeginImplFrame(const cc::BeginFrameArgs& args) {} |
59 | 59 |
60 void SurfacesScheduler::DidFinishImplFrame() {} | 60 void SurfacesScheduler::DidFinishImplFrame() {} |
61 | 61 |
62 void SurfacesScheduler::ScheduledActionSendBeginMainFrame() { | 62 void SurfacesScheduler::ScheduledActionSendBeginMainFrame( |
| 63 const cc::BeginFrameArgs& args) { |
63 scheduler_->NotifyBeginMainFrameStarted(base::TimeTicks()); | 64 scheduler_->NotifyBeginMainFrameStarted(base::TimeTicks()); |
64 scheduler_->NotifyReadyToCommit(); | 65 scheduler_->NotifyReadyToCommit(); |
65 } | 66 } |
66 | 67 |
67 cc::DrawResult SurfacesScheduler::ScheduledActionDrawAndSwapIfPossible() { | 68 cc::DrawResult SurfacesScheduler::ScheduledActionDrawAndSwapIfPossible() { |
68 for (const auto& it : displays_) { | 69 for (const auto& it : displays_) { |
69 it->DrawAndSwap(); | 70 it->DrawAndSwap(); |
70 } | 71 } |
71 return cc::DRAW_SUCCESS; | 72 return cc::DRAW_SUCCESS; |
72 } | 73 } |
(...skipping 18 matching lines...) Expand all Loading... |
91 void SurfacesScheduler::ScheduledActionPrepareTiles() {} | 92 void SurfacesScheduler::ScheduledActionPrepareTiles() {} |
92 | 93 |
93 void SurfacesScheduler::ScheduledActionInvalidateOutputSurface() {} | 94 void SurfacesScheduler::ScheduledActionInvalidateOutputSurface() {} |
94 | 95 |
95 void SurfacesScheduler::SendBeginFramesToChildren( | 96 void SurfacesScheduler::SendBeginFramesToChildren( |
96 const cc::BeginFrameArgs& args) {} | 97 const cc::BeginFrameArgs& args) {} |
97 | 98 |
98 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() {} | 99 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() {} |
99 | 100 |
100 } // namespace mus | 101 } // namespace mus |
OLD | NEW |