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