| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 } | 1394 } |
| 1390 | 1395 |
| 1391 void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { | 1396 void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
| 1392 DCHECK(IsImplThread()); | 1397 DCHECK(IsImplThread()); |
| 1393 Proxy::MainThreadTaskRunner()->PostTask( | 1398 Proxy::MainThreadTaskRunner()->PostTask( |
| 1394 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, | 1399 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, |
| 1395 main_thread_weak_ptr_)); | 1400 main_thread_weak_ptr_)); |
| 1396 } | 1401 } |
| 1397 | 1402 |
| 1398 } // namespace cc | 1403 } // namespace cc |
| OLD | NEW |