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

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

Issue 1005553004: cc: Add support for handling authoritative vsync interval (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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') | 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 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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 } 1132 }
1133 1133
1134 void ThreadProxy::DidBeginImplFrameDeadline() { 1134 void ThreadProxy::DidBeginImplFrameDeadline() {
1135 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame(); 1135 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame();
1136 } 1136 }
1137 1137
1138 void ThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { 1138 void ThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
1139 NOTREACHED() << "Only used by SingleThreadProxy"; 1139 NOTREACHED() << "Only used by SingleThreadProxy";
1140 } 1140 }
1141 1141
1142 void ThreadProxy::SetAuthoritativeVSyncInterval(
1143 const base::TimeDelta& interval) {
1144 NOTREACHED() << "Only used by SingleThreadProxy";
1145 }
1146
1142 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1147 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1143 DCHECK(IsImplThread()); 1148 DCHECK(IsImplThread());
1144 impl().scheduler->NotifyReadyToCommit(); 1149 impl().scheduler->NotifyReadyToCommit();
1145 } 1150 }
1146 1151
1147 void ThreadProxy::DidCommitAndDrawFrame() { 1152 void ThreadProxy::DidCommitAndDrawFrame() {
1148 DCHECK(IsMainThread()); 1153 DCHECK(IsMainThread());
1149 layer_tree_host()->DidCommitAndDrawFrame(); 1154 layer_tree_host()->DidCommitAndDrawFrame();
1150 } 1155 }
1151 1156
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 } 1369 }
1365 1370
1366 void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { 1371 void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() {
1367 DCHECK(IsImplThread()); 1372 DCHECK(IsImplThread());
1368 Proxy::MainThreadTaskRunner()->PostTask( 1373 Proxy::MainThreadTaskRunner()->PostTask(
1369 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, 1374 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation,
1370 main_thread_weak_ptr_)); 1375 main_thread_weak_ptr_));
1371 } 1376 }
1372 1377
1373 } // namespace cc 1378 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698