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 } |
| 342 |
340 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { | 343 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { |
341 client_->ScheduleComposite(); | 344 client_->ScheduleComposite(); |
342 if (scheduler_on_impl_thread_) | 345 if (scheduler_on_impl_thread_) |
343 scheduler_on_impl_thread_->SetNeedsRedraw(); | 346 scheduler_on_impl_thread_->SetNeedsRedraw(); |
344 } | 347 } |
345 | 348 |
346 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { | 349 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { |
347 SetNeedsRedrawOnImplThread(); | 350 SetNeedsRedrawOnImplThread(); |
348 } | 351 } |
349 | 352 |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 | 777 |
775 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { | 778 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { |
776 return timing_history_.CommitToActivateDurationEstimate(); | 779 return timing_history_.CommitToActivateDurationEstimate(); |
777 } | 780 } |
778 | 781 |
779 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 782 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
780 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 783 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
781 } | 784 } |
782 | 785 |
783 } // namespace cc | 786 } // namespace cc |
OLD | NEW |