| 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/thread_proxy.h" | 5 #include "cc/trees/thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "cc/base/thread.h" | 10 #include "cc/base/thread.h" |
| 11 #include "cc/delay_based_time_source.h" | 11 #include "cc/delay_based_time_source.h" |
| 12 #include "cc/frame_rate_controller.h" | 12 #include "cc/frame_rate_controller.h" |
| 13 #include "cc/input/input_handler.h" | 13 #include "cc/input/input_handler.h" |
| 14 #include "cc/output/context_provider.h" | 14 #include "cc/output/context_provider.h" |
| 15 #include "cc/output/output_surface.h" | 15 #include "cc/output/output_surface.h" |
| 16 #include "cc/prioritized_resource_manager.h" | |
| 17 #include "cc/quads/draw_quad.h" | 16 #include "cc/quads/draw_quad.h" |
| 17 #include "cc/resources/prioritized_resource_manager.h" |
| 18 #include "cc/scheduler.h" | 18 #include "cc/scheduler.h" |
| 19 #include "cc/trees/layer_tree_host.h" | 19 #include "cc/trees/layer_tree_host.h" |
| 20 #include "cc/trees/layer_tree_impl.h" | 20 #include "cc/trees/layer_tree_impl.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // Measured in seconds. | 24 // Measured in seconds. |
| 25 const double kContextRecreationTickRate = 0.03; | 25 const double kContextRecreationTickRate = 0.03; |
| 26 | 26 |
| 27 // Measured in seconds. | 27 // Measured in seconds. |
| (...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1332 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread, | 1332 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread, |
| 1333 impl_thread_weak_ptr_), | 1333 impl_thread_weak_ptr_), |
| 1334 delay); | 1334 delay); |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 void ThreadProxy::StartScrollbarAnimationOnImplThread() { | 1337 void ThreadProxy::StartScrollbarAnimationOnImplThread() { |
| 1338 layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now()); | 1338 layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now()); |
| 1339 } | 1339 } |
| 1340 | 1340 |
| 1341 } // namespace cc | 1341 } // namespace cc |
| OLD | NEW |