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

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

Issue 548153004: Unified BeginFrame scheduling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format 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
« 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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 } 1162 }
1163 1163
1164 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() { 1164 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() {
1165 return impl().timing_history.CommitToActivateDurationEstimate(); 1165 return impl().timing_history.CommitToActivateDurationEstimate();
1166 } 1166 }
1167 1167
1168 void ThreadProxy::DidBeginImplFrameDeadline() { 1168 void ThreadProxy::DidBeginImplFrameDeadline() {
1169 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame(); 1169 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame();
1170 } 1170 }
1171 1171
1172 void ThreadProxy::SendBeginFrameToChildren(const BeginFrameArgs& args) {
1173 // Only used by SingleThreadProxy.
1174 NOTREACHED();
1175 }
1176
1172 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1177 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1173 DCHECK(IsImplThread()); 1178 DCHECK(IsImplThread());
1174 impl().scheduler->NotifyReadyToCommit(); 1179 impl().scheduler->NotifyReadyToCommit();
1175 } 1180 }
1176 1181
1177 void ThreadProxy::DidCommitAndDrawFrame() { 1182 void ThreadProxy::DidCommitAndDrawFrame() {
1178 DCHECK(IsMainThread()); 1183 DCHECK(IsMainThread());
1179 layer_tree_host()->DidCommitAndDrawFrame(); 1184 layer_tree_host()->DidCommitAndDrawFrame();
1180 } 1185 }
1181 1186
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 1409
1405 impl().timing_history.DidActivateSyncTree(); 1410 impl().timing_history.DidActivateSyncTree();
1406 } 1411 }
1407 1412
1408 void ThreadProxy::DidManageTiles() { 1413 void ThreadProxy::DidManageTiles() {
1409 DCHECK(IsImplThread()); 1414 DCHECK(IsImplThread());
1410 impl().scheduler->DidManageTiles(); 1415 impl().scheduler->DidManageTiles();
1411 } 1416 }
1412 1417
1413 } // namespace cc 1418 } // 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