| 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/thread_proxy.h" | 5 #include "cc/thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "cc/delay_based_time_source.h" | 9 #include "cc/delay_based_time_source.h" |
| 10 #include "cc/draw_quad.h" | 10 #include "cc/draw_quad.h" |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 } | 822 } |
| 823 | 823 |
| 824 void ThreadProxy::didAnticipatedDrawTimeChange(base::TimeTicks time) | 824 void ThreadProxy::didAnticipatedDrawTimeChange(base::TimeTicks time) |
| 825 { | 825 { |
| 826 if (!m_currentResourceUpdateControllerOnImplThread) | 826 if (!m_currentResourceUpdateControllerOnImplThread) |
| 827 return; | 827 return; |
| 828 | 828 |
| 829 m_currentResourceUpdateControllerOnImplThread->performMoreUpdates(time); | 829 m_currentResourceUpdateControllerOnImplThread->performMoreUpdates(time); |
| 830 } | 830 } |
| 831 | 831 |
| 832 const LayerTreeSettings& ThreadProxy::settings() const |
| 833 { |
| 834 DCHECK(isImplThread()); |
| 835 return m_layerTreeHostImpl->settings(); |
| 836 } |
| 837 |
| 832 void ThreadProxy::readyToFinalizeTextureUpdates() | 838 void ThreadProxy::readyToFinalizeTextureUpdates() |
| 833 { | 839 { |
| 834 DCHECK(isImplThread()); | 840 DCHECK(isImplThread()); |
| 835 m_schedulerOnImplThread->beginFrameComplete(); | 841 m_schedulerOnImplThread->beginFrameComplete(); |
| 836 } | 842 } |
| 837 | 843 |
| 838 void ThreadProxy::didCommitAndDrawFrame() | 844 void ThreadProxy::didCommitAndDrawFrame() |
| 839 { | 845 { |
| 840 DCHECK(isMainThread()); | 846 DCHECK(isMainThread()); |
| 841 if (!m_layerTreeHost) | 847 if (!m_layerTreeHost) |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 | 973 |
| 968 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() | 974 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() |
| 969 { | 975 { |
| 970 } | 976 } |
| 971 | 977 |
| 972 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() | 978 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() |
| 973 { | 979 { |
| 974 } | 980 } |
| 975 | 981 |
| 976 } // namespace cc | 982 } // namespace cc |
| OLD | NEW |