| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |