| 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 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |