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

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, 2 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
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('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 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 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 } 1155 }
1156 1156
1157 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() { 1157 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() {
1158 return impl().timing_history.CommitToActivateDurationEstimate(); 1158 return impl().timing_history.CommitToActivateDurationEstimate();
1159 } 1159 }
1160 1160
1161 void ThreadProxy::DidBeginImplFrameDeadline() { 1161 void ThreadProxy::DidBeginImplFrameDeadline() {
1162 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame(); 1162 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame();
1163 } 1163 }
1164 1164
1165 void ThreadProxy::SendBeginFrameToChildren(const BeginFrameArgs& args) {
1166 // Only used by SingleThreadProxy.
1167 NOTREACHED();
1168 }
1169
1165 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1170 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1166 DCHECK(IsImplThread()); 1171 DCHECK(IsImplThread());
1167 impl().scheduler->NotifyReadyToCommit(); 1172 impl().scheduler->NotifyReadyToCommit();
1168 } 1173 }
1169 1174
1170 void ThreadProxy::DidCommitAndDrawFrame() { 1175 void ThreadProxy::DidCommitAndDrawFrame() {
1171 DCHECK(IsMainThread()); 1176 DCHECK(IsMainThread());
1172 layer_tree_host()->DidCommitAndDrawFrame(); 1177 layer_tree_host()->DidCommitAndDrawFrame();
1173 } 1178 }
1174 1179
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 1408
1404 impl().timing_history.DidActivateSyncTree(); 1409 impl().timing_history.DidActivateSyncTree();
1405 } 1410 }
1406 1411
1407 void ThreadProxy::DidManageTiles() { 1412 void ThreadProxy::DidManageTiles() {
1408 DCHECK(IsImplThread()); 1413 DCHECK(IsImplThread());
1409 impl().scheduler->DidManageTiles(); 1414 impl().scheduler->DidManageTiles();
1410 } 1415 }
1411 1416
1412 } // namespace cc 1417 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698