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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 scheduler_->NotifyBeginMainFrameStarted(); | 63 scheduler_->NotifyBeginMainFrameStarted(base::TimeTicks()); |
64 scheduler_->NotifyReadyToCommit(); | 64 scheduler_->NotifyReadyToCommit(); |
65 } | 65 } |
66 | 66 |
67 cc::DrawResult SurfacesScheduler::ScheduledActionDrawAndSwapIfPossible() { | 67 cc::DrawResult SurfacesScheduler::ScheduledActionDrawAndSwapIfPossible() { |
68 for (const auto& it : displays_) { | 68 for (const auto& it : displays_) { |
69 it->DrawAndSwap(); | 69 it->DrawAndSwap(); |
70 } | 70 } |
71 return cc::DRAW_SUCCESS; | 71 return cc::DRAW_SUCCESS; |
72 } | 72 } |
73 | 73 |
(...skipping 17 matching lines...) Expand all Loading... |
91 void SurfacesScheduler::ScheduledActionPrepareTiles() {} | 91 void SurfacesScheduler::ScheduledActionPrepareTiles() {} |
92 | 92 |
93 void SurfacesScheduler::ScheduledActionInvalidateOutputSurface() {} | 93 void SurfacesScheduler::ScheduledActionInvalidateOutputSurface() {} |
94 | 94 |
95 void SurfacesScheduler::SendBeginFramesToChildren( | 95 void SurfacesScheduler::SendBeginFramesToChildren( |
96 const cc::BeginFrameArgs& args) {} | 96 const cc::BeginFrameArgs& args) {} |
97 | 97 |
98 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() {} | 98 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() {} |
99 | 99 |
100 } // namespace mus | 100 } // namespace mus |
OLD | NEW |