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

Side by Side Diff: components/mus/surfaces/surfaces_scheduler.cc

Issue 1432463002: cc: Track BeginMainFrame more precisely in CompositorTimingHistory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase; fix typo Created 5 years, 1 month 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 | « cc/trees/threaded_channel.cc ('k') | tools/metrics/histograms/histograms.xml » ('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 #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
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
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
OLDNEW
« no previous file with comments | « cc/trees/threaded_channel.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698