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 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1181 } | 1181 } |
1182 | 1182 |
1183 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() { | 1183 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() { |
1184 return impl().timing_history.CommitToActivateDurationEstimate(); | 1184 return impl().timing_history.CommitToActivateDurationEstimate(); |
1185 } | 1185 } |
1186 | 1186 |
1187 void ThreadProxy::DidBeginImplFrameDeadline() { | 1187 void ThreadProxy::DidBeginImplFrameDeadline() { |
1188 impl().layer_tree_host_impl->ResetCurrentFrameTimeForNextFrame(); | 1188 impl().layer_tree_host_impl->ResetCurrentFrameTimeForNextFrame(); |
1189 } | 1189 } |
1190 | 1190 |
| 1191 void ThreadProxy::SendBeginFrameToChildren(const BeginFrameArgs& args) { |
| 1192 // Only used by SingleThreadProxy. |
| 1193 NOTREACHED(); |
| 1194 } |
| 1195 |
1191 void ThreadProxy::ReadyToFinalizeTextureUpdates() { | 1196 void ThreadProxy::ReadyToFinalizeTextureUpdates() { |
1192 DCHECK(IsImplThread()); | 1197 DCHECK(IsImplThread()); |
1193 impl().scheduler->NotifyReadyToCommit(); | 1198 impl().scheduler->NotifyReadyToCommit(); |
1194 } | 1199 } |
1195 | 1200 |
1196 void ThreadProxy::DidCommitAndDrawFrame() { | 1201 void ThreadProxy::DidCommitAndDrawFrame() { |
1197 DCHECK(IsMainThread()); | 1202 DCHECK(IsMainThread()); |
1198 layer_tree_host()->DidCommitAndDrawFrame(); | 1203 layer_tree_host()->DidCommitAndDrawFrame(); |
1199 } | 1204 } |
1200 | 1205 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 | 1419 |
1415 impl().timing_history.DidActivateSyncTree(); | 1420 impl().timing_history.DidActivateSyncTree(); |
1416 } | 1421 } |
1417 | 1422 |
1418 void ThreadProxy::DidManageTiles() { | 1423 void ThreadProxy::DidManageTiles() { |
1419 DCHECK(IsImplThread()); | 1424 DCHECK(IsImplThread()); |
1420 impl().scheduler->DidManageTiles(); | 1425 impl().scheduler->DidManageTiles(); |
1421 } | 1426 } |
1422 | 1427 |
1423 } // namespace cc | 1428 } // namespace cc |
OLD | NEW |