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

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

Issue 1111743002: cc: Adding DidFinishImplFrame to LTHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing surfaces_scheduler. 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/surfaces_scheduler.h ('k') | no next file » | 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/surfaces/surfaces_scheduler.h" 5 #include "components/surfaces/surfaces_scheduler.h"
6 6
7 #include "cc/surfaces/display.h" 7 #include "cc/surfaces/display.h"
8 8
9 namespace surfaces { 9 namespace surfaces {
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 void SurfacesScheduler::RemoveDisplay(cc::Display* display) { 42 void SurfacesScheduler::RemoveDisplay(cc::Display* display) {
43 auto it = displays_.find(display); 43 auto it = displays_.find(display);
44 DCHECK(it != displays_.end()); 44 DCHECK(it != displays_.end());
45 displays_.erase(it); 45 displays_.erase(it);
46 } 46 }
47 47
48 void SurfacesScheduler::WillBeginImplFrame(const cc::BeginFrameArgs& args) { 48 void SurfacesScheduler::WillBeginImplFrame(const cc::BeginFrameArgs& args) {
49 } 49 }
50 50
51 void SurfacesScheduler::DidFinishImplFrame() {
52 }
53
51 void SurfacesScheduler::ScheduledActionSendBeginMainFrame() { 54 void SurfacesScheduler::ScheduledActionSendBeginMainFrame() {
52 scheduler_->NotifyBeginMainFrameStarted(); 55 scheduler_->NotifyBeginMainFrameStarted();
53 scheduler_->NotifyReadyToCommit(); 56 scheduler_->NotifyReadyToCommit();
54 } 57 }
55 58
56 cc::DrawResult SurfacesScheduler::ScheduledActionDrawAndSwapIfPossible() { 59 cc::DrawResult SurfacesScheduler::ScheduledActionDrawAndSwapIfPossible() {
57 base::TimeTicks start = base::TimeTicks::Now(); 60 base::TimeTicks start = base::TimeTicks::Now();
58 for (const auto& it : displays_) { 61 for (const auto& it : displays_) {
59 it->Draw(); 62 it->Draw();
60 } 63 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 99 }
97 100
98 base::TimeDelta SurfacesScheduler::BeginMainFrameToCommitDurationEstimate() { 101 base::TimeDelta SurfacesScheduler::BeginMainFrameToCommitDurationEstimate() {
99 return base::TimeDelta(); 102 return base::TimeDelta();
100 } 103 }
101 104
102 base::TimeDelta SurfacesScheduler::CommitToActivateDurationEstimate() { 105 base::TimeDelta SurfacesScheduler::CommitToActivateDurationEstimate() {
103 return base::TimeDelta(); 106 return base::TimeDelta();
104 } 107 }
105 108
106 void SurfacesScheduler::DidBeginImplFrameDeadline() {
107 }
108
109 void SurfacesScheduler::SendBeginFramesToChildren( 109 void SurfacesScheduler::SendBeginFramesToChildren(
110 const cc::BeginFrameArgs& args) { 110 const cc::BeginFrameArgs& args) {
111 } 111 }
112 112
113 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() { 113 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() {
114 } 114 }
115 115
116 } // namespace mojo 116 } // namespace mojo
OLDNEW
« no previous file with comments | « components/surfaces/surfaces_scheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698