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