Chromium Code Reviews| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 330 scheduler_on_impl_thread_->SetCanDraw(can_draw); | 330 scheduler_on_impl_thread_->SetCanDraw(can_draw); |
| 331 } | 331 } |
| 332 | 332 |
| 333 void SingleThreadProxy::NotifyReadyToActivate() { | 333 void SingleThreadProxy::NotifyReadyToActivate() { |
| 334 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate"); | 334 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate"); |
| 335 DebugScopedSetImplThread impl(this); | 335 DebugScopedSetImplThread impl(this); |
| 336 if (scheduler_on_impl_thread_) | 336 if (scheduler_on_impl_thread_) |
| 337 scheduler_on_impl_thread_->NotifyReadyToActivate(); | 337 scheduler_on_impl_thread_->NotifyReadyToActivate(); |
| 338 } | 338 } |
| 339 | 339 |
| 340 void SingleThreadProxy::NotifyReadyToDraw() { | |
| 341 // Thread-only feature. | |
|
vmpstr
2014/10/24 18:02:24
This would still be called though right? (if we're
ernstm
2014/10/27 21:13:57
Acknowledged.
| |
| 342 NOTREACHED(); | |
|
enne (OOO)
2014/10/24 19:16:28
This notification will still get called, so just m
ernstm
2014/10/27 21:13:57
Done.
| |
| 343 } | |
| 344 | |
| 340 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { | 345 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { |
| 341 client_->ScheduleComposite(); | 346 client_->ScheduleComposite(); |
| 342 if (scheduler_on_impl_thread_) | 347 if (scheduler_on_impl_thread_) |
| 343 scheduler_on_impl_thread_->SetNeedsRedraw(); | 348 scheduler_on_impl_thread_->SetNeedsRedraw(); |
| 344 } | 349 } |
| 345 | 350 |
| 346 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { | 351 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { |
| 347 SetNeedsRedrawOnImplThread(); | 352 SetNeedsRedrawOnImplThread(); |
| 348 } | 353 } |
| 349 | 354 |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 774 | 779 |
| 775 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { | 780 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { |
| 776 return timing_history_.CommitToActivateDurationEstimate(); | 781 return timing_history_.CommitToActivateDurationEstimate(); |
| 777 } | 782 } |
| 778 | 783 |
| 779 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 784 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
| 780 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 785 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
| 781 } | 786 } |
| 782 | 787 |
| 783 } // namespace cc | 788 } // namespace cc |
| OLD | NEW |