| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 void ThreadProxy::CommitVSyncParameters(base::TimeTicks timebase, | 302 void ThreadProxy::CommitVSyncParameters(base::TimeTicks timebase, |
| 303 base::TimeDelta interval) { | 303 base::TimeDelta interval) { |
| 304 impl().scheduler->CommitVSyncParameters(timebase, interval); | 304 impl().scheduler->CommitVSyncParameters(timebase, interval); |
| 305 } | 305 } |
| 306 | 306 |
| 307 void ThreadProxy::SetEstimatedParentDrawTime(base::TimeDelta draw_time) { | 307 void ThreadProxy::SetEstimatedParentDrawTime(base::TimeDelta draw_time) { |
| 308 impl().scheduler->SetEstimatedParentDrawTime(draw_time); | 308 impl().scheduler->SetEstimatedParentDrawTime(draw_time); |
| 309 } | 309 } |
| 310 | 310 |
| 311 void ThreadProxy::SetMaxSwapsPendingOnImplThread(int max) { | |
| 312 impl().scheduler->SetMaxSwapsPending(max); | |
| 313 } | |
| 314 | |
| 315 void ThreadProxy::DidSwapBuffersOnImplThread() { | 311 void ThreadProxy::DidSwapBuffersOnImplThread() { |
| 316 impl().scheduler->DidSwapBuffers(); | 312 impl().scheduler->DidSwapBuffers(); |
| 317 } | 313 } |
| 318 | 314 |
| 319 void ThreadProxy::DidSwapBuffersCompleteOnImplThread() { | 315 void ThreadProxy::DidSwapBuffersCompleteOnImplThread() { |
| 320 TRACE_EVENT0("cc,benchmark", | 316 TRACE_EVENT0("cc,benchmark", |
| 321 "ThreadProxy::DidSwapBuffersCompleteOnImplThread"); | 317 "ThreadProxy::DidSwapBuffersCompleteOnImplThread"); |
| 322 DCHECK(task_runner_provider_->IsImplThread()); | 318 DCHECK(task_runner_provider_->IsImplThread()); |
| 323 impl().scheduler->DidSwapBuffersComplete(); | 319 impl().scheduler->DidSwapBuffersComplete(); |
| 324 impl().channel_impl->DidCompleteSwapBuffers(); | 320 impl().channel_impl->DidCompleteSwapBuffers(); |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 | 1183 |
| 1188 base::WeakPtr<ProxyMain> ThreadProxy::GetMainWeakPtr() { | 1184 base::WeakPtr<ProxyMain> ThreadProxy::GetMainWeakPtr() { |
| 1189 return main_thread_weak_ptr_; | 1185 return main_thread_weak_ptr_; |
| 1190 } | 1186 } |
| 1191 | 1187 |
| 1192 base::WeakPtr<ProxyImpl> ThreadProxy::GetImplWeakPtr() { | 1188 base::WeakPtr<ProxyImpl> ThreadProxy::GetImplWeakPtr() { |
| 1193 return impl_thread_weak_ptr_; | 1189 return impl_thread_weak_ptr_; |
| 1194 } | 1190 } |
| 1195 | 1191 |
| 1196 } // namespace cc | 1192 } // namespace cc |
| OLD | NEW |