| 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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 } | 1156 } |
| 1157 | 1157 |
| 1158 base::TimeDelta ThreadProxy::BeginMainFrameToCommitDurationEstimate() { | 1158 base::TimeDelta ThreadProxy::BeginMainFrameToCommitDurationEstimate() { |
| 1159 return impl().timing_history.BeginMainFrameToCommitDurationEstimate(); | 1159 return impl().timing_history.BeginMainFrameToCommitDurationEstimate(); |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() { | 1162 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() { |
| 1163 return impl().timing_history.CommitToActivateDurationEstimate(); | 1163 return impl().timing_history.CommitToActivateDurationEstimate(); |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 void ThreadProxy::DidBeginImplFrameDeadline() { | 1166 void ThreadProxy::DidFinishImplFrame() { |
| 1167 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame(); | 1167 impl().layer_tree_host_impl->DidFinishImplFrame(); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 void ThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { | 1170 void ThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { |
| 1171 NOTREACHED() << "Only used by SingleThreadProxy"; | 1171 NOTREACHED() << "Only used by SingleThreadProxy"; |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 void ThreadProxy::SetAuthoritativeVSyncInterval( | 1174 void ThreadProxy::SetAuthoritativeVSyncInterval( |
| 1175 const base::TimeDelta& interval) { | 1175 const base::TimeDelta& interval) { |
| 1176 NOTREACHED() << "Only used by SingleThreadProxy"; | 1176 NOTREACHED() << "Only used by SingleThreadProxy"; |
| 1177 } | 1177 } |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, | 1408 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, |
| 1409 main_thread_weak_ptr_)); | 1409 main_thread_weak_ptr_)); |
| 1410 } | 1410 } |
| 1411 | 1411 |
| 1412 void ThreadProxy::OnDrawForOutputSurface() { | 1412 void ThreadProxy::OnDrawForOutputSurface() { |
| 1413 DCHECK(IsImplThread()); | 1413 DCHECK(IsImplThread()); |
| 1414 impl().scheduler->OnDrawForOutputSurface(); | 1414 impl().scheduler->OnDrawForOutputSurface(); |
| 1415 } | 1415 } |
| 1416 | 1416 |
| 1417 } // namespace cc | 1417 } // namespace cc |
| OLD | NEW |