| 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/single_thread_proxy.h" | 5 #include "cc/trees/single_thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "cc/debug/benchmark_instrumentation.h" | 9 #include "cc/debug/benchmark_instrumentation.h" |
| 10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 scheduler_on_impl_thread_->SetCanDraw(can_draw); | 341 scheduler_on_impl_thread_->SetCanDraw(can_draw); |
| 342 } | 342 } |
| 343 | 343 |
| 344 void SingleThreadProxy::NotifyReadyToActivate() { | 344 void SingleThreadProxy::NotifyReadyToActivate() { |
| 345 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate"); | 345 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate"); |
| 346 DebugScopedSetImplThread impl(this); | 346 DebugScopedSetImplThread impl(this); |
| 347 if (scheduler_on_impl_thread_) | 347 if (scheduler_on_impl_thread_) |
| 348 scheduler_on_impl_thread_->NotifyReadyToActivate(); | 348 scheduler_on_impl_thread_->NotifyReadyToActivate(); |
| 349 } | 349 } |
| 350 | 350 |
| 351 void SingleThreadProxy::NotifyReadyToDraw() { |
| 352 } |
| 353 |
| 351 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { | 354 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { |
| 352 client_->ScheduleComposite(); | 355 client_->ScheduleComposite(); |
| 353 if (scheduler_on_impl_thread_) | 356 if (scheduler_on_impl_thread_) |
| 354 scheduler_on_impl_thread_->SetNeedsRedraw(); | 357 scheduler_on_impl_thread_->SetNeedsRedraw(); |
| 355 } | 358 } |
| 356 | 359 |
| 357 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { | 360 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { |
| 358 client_->ScheduleComposite(); | 361 client_->ScheduleComposite(); |
| 359 if (scheduler_on_impl_thread_) | 362 if (scheduler_on_impl_thread_) |
| 360 scheduler_on_impl_thread_->SetNeedsAnimate(); | 363 scheduler_on_impl_thread_->SetNeedsAnimate(); |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 | 793 |
| 791 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { | 794 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { |
| 792 return timing_history_.CommitToActivateDurationEstimate(); | 795 return timing_history_.CommitToActivateDurationEstimate(); |
| 793 } | 796 } |
| 794 | 797 |
| 795 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 798 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
| 796 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 799 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
| 797 } | 800 } |
| 798 | 801 |
| 799 } // namespace cc | 802 } // namespace cc |
| OLD | NEW |