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

Side by Side Diff: cc/trees/thread_proxy.cc

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/thread_proxy.h" 5 #include "cc/trees/thread_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 } 1181 }
1182 1182
1183 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() { 1183 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() {
1184 return impl().timing_history.CommitToActivateDurationEstimate(); 1184 return impl().timing_history.CommitToActivateDurationEstimate();
1185 } 1185 }
1186 1186
1187 void ThreadProxy::DidBeginImplFrameDeadline() { 1187 void ThreadProxy::DidBeginImplFrameDeadline() {
1188 impl().layer_tree_host_impl->ResetCurrentFrameTimeForNextFrame(); 1188 impl().layer_tree_host_impl->ResetCurrentFrameTimeForNextFrame();
1189 } 1189 }
1190 1190
1191 void ThreadProxy::SendBeginFrameToChildren(const BeginFrameArgs& args) {
1192 // Only used by SingleThreadProxy.
1193 NOTREACHED();
1194 }
1195
1191 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1196 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1192 DCHECK(IsImplThread()); 1197 DCHECK(IsImplThread());
1193 impl().scheduler->NotifyReadyToCommit(); 1198 impl().scheduler->NotifyReadyToCommit();
1194 } 1199 }
1195 1200
1196 void ThreadProxy::DidCommitAndDrawFrame() { 1201 void ThreadProxy::DidCommitAndDrawFrame() {
1197 DCHECK(IsMainThread()); 1202 DCHECK(IsMainThread());
1198 layer_tree_host()->DidCommitAndDrawFrame(); 1203 layer_tree_host()->DidCommitAndDrawFrame();
1199 } 1204 }
1200 1205
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 1419
1415 impl().timing_history.DidActivateSyncTree(); 1420 impl().timing_history.DidActivateSyncTree();
1416 } 1421 }
1417 1422
1418 void ThreadProxy::DidManageTiles() { 1423 void ThreadProxy::DidManageTiles() {
1419 DCHECK(IsImplThread()); 1424 DCHECK(IsImplThread());
1420 impl().scheduler->DidManageTiles(); 1425 impl().scheduler->DidManageTiles();
1421 } 1426 }
1422 1427
1423 } // namespace cc 1428 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698