| 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/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
| 9 #include "cc/debug/benchmark_instrumentation.h" | 9 #include "cc/debug/benchmark_instrumentation.h" |
| 10 #include "cc/debug/devtools_instrumentation.h" | 10 #include "cc/debug/devtools_instrumentation.h" |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 } | 829 } |
| 830 | 830 |
| 831 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 831 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
| 832 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 832 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
| 833 } | 833 } |
| 834 | 834 |
| 835 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { | 835 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { |
| 836 layer_tree_host_->SendBeginFramesToChildren(args); | 836 layer_tree_host_->SendBeginFramesToChildren(args); |
| 837 } | 837 } |
| 838 | 838 |
| 839 base::TimeTicks SingleThreadProxy::GetNextBeginImplFrameTimeIfRequested() |
| 840 const { |
| 841 return scheduler_on_impl_thread_->NextBeginImplFrameTimeIfRequested(); |
| 842 } |
| 843 |
| 839 } // namespace cc | 844 } // namespace cc |
| OLD | NEW |