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 "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "cc/base/thread.h" | 10 #include "cc/base/thread.h" |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 ScheduledActionDrawAndSwapResult | 997 ScheduledActionDrawAndSwapResult |
998 ThreadProxy::ScheduledActionDrawAndSwapForced() { | 998 ThreadProxy::ScheduledActionDrawAndSwapForced() { |
999 return ScheduledActionDrawAndSwapInternal(true); | 999 return ScheduledActionDrawAndSwapInternal(true); |
1000 } | 1000 } |
1001 | 1001 |
1002 void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) { | 1002 void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) { |
1003 if (layer_tree_host_impl_) | 1003 if (layer_tree_host_impl_) |
1004 layer_tree_host_impl_->SetAnticipatedDrawTime(time); | 1004 layer_tree_host_impl_->SetAnticipatedDrawTime(time); |
1005 | 1005 |
1006 if (current_resource_update_controller_on_impl_thread_) | 1006 if (current_resource_update_controller_on_impl_thread_) |
1007 current_resource_update_controller_on_impl_thread_->PerformMoreUpdates(time)
; | 1007 current_resource_update_controller_on_impl_thread_ |
| 1008 ->PerformMoreUpdates(time); |
1008 } | 1009 } |
1009 | 1010 |
1010 void ThreadProxy::ReadyToFinalizeTextureUpdates() { | 1011 void ThreadProxy::ReadyToFinalizeTextureUpdates() { |
1011 DCHECK(IsImplThread()); | 1012 DCHECK(IsImplThread()); |
1012 scheduler_on_impl_thread_->BeginFrameComplete(); | 1013 scheduler_on_impl_thread_->BeginFrameComplete(); |
1013 } | 1014 } |
1014 | 1015 |
1015 void ThreadProxy::DidCommitAndDrawFrame() { | 1016 void ThreadProxy::DidCommitAndDrawFrame() { |
1016 DCHECK(IsMainThread()); | 1017 DCHECK(IsMainThread()); |
1017 if (!layer_tree_host_) | 1018 if (!layer_tree_host_) |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread, | 1313 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread, |
1313 impl_thread_weak_ptr_), | 1314 impl_thread_weak_ptr_), |
1314 delay); | 1315 delay); |
1315 } | 1316 } |
1316 | 1317 |
1317 void ThreadProxy::StartScrollbarAnimationOnImplThread() { | 1318 void ThreadProxy::StartScrollbarAnimationOnImplThread() { |
1318 layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now()); | 1319 layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now()); |
1319 } | 1320 } |
1320 | 1321 |
1321 } // namespace cc | 1322 } // namespace cc |
OLD | NEW |