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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 scheduler_on_impl_thread_->SetCanDraw(can_draw); | 333 scheduler_on_impl_thread_->SetCanDraw(can_draw); |
334 } | 334 } |
335 | 335 |
336 void SingleThreadProxy::NotifyReadyToActivate() { | 336 void SingleThreadProxy::NotifyReadyToActivate() { |
337 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate"); | 337 TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate"); |
338 DebugScopedSetImplThread impl(this); | 338 DebugScopedSetImplThread impl(this); |
339 if (scheduler_on_impl_thread_) | 339 if (scheduler_on_impl_thread_) |
340 scheduler_on_impl_thread_->NotifyReadyToActivate(); | 340 scheduler_on_impl_thread_->NotifyReadyToActivate(); |
341 } | 341 } |
342 | 342 |
| 343 void SingleThreadProxy::NotifyReadyToDraw() { |
| 344 } |
| 345 |
343 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { | 346 void SingleThreadProxy::SetNeedsRedrawOnImplThread() { |
344 client_->ScheduleComposite(); | 347 client_->ScheduleComposite(); |
345 if (scheduler_on_impl_thread_) | 348 if (scheduler_on_impl_thread_) |
346 scheduler_on_impl_thread_->SetNeedsRedraw(); | 349 scheduler_on_impl_thread_->SetNeedsRedraw(); |
347 } | 350 } |
348 | 351 |
349 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { | 352 void SingleThreadProxy::SetNeedsAnimateOnImplThread() { |
350 SetNeedsRedrawOnImplThread(); | 353 SetNeedsRedrawOnImplThread(); |
351 } | 354 } |
352 | 355 |
(...skipping 437 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 |