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/thread_proxy.h" | 5 #include "cc/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/context_provider.h" | 10 #include "cc/context_provider.h" |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 } | 1228 } |
1229 | 1229 |
1230 void ThreadProxy::renewTreePriorityOnImplThread() | 1230 void ThreadProxy::renewTreePriorityOnImplThread() |
1231 { | 1231 { |
1232 DCHECK(m_renewTreePriorityOnImplThreadPending); | 1232 DCHECK(m_renewTreePriorityOnImplThreadPending); |
1233 m_renewTreePriorityOnImplThreadPending = false; | 1233 m_renewTreePriorityOnImplThreadPending = false; |
1234 | 1234 |
1235 RenewTreePriority(); | 1235 RenewTreePriority(); |
1236 } | 1236 } |
1237 | 1237 |
| 1238 void ThreadProxy::RequestScrollbarAnimationOnImplThread(double delay) { |
| 1239 Proxy::ImplThread()->postDelayedTask( |
| 1240 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread, |
| 1241 m_implThreadWeakPtr), |
| 1242 delay * 1000.0); |
| 1243 } |
| 1244 |
| 1245 void ThreadProxy::StartScrollbarAnimationOnImplThread() { |
| 1246 m_layerTreeHostImpl->StartScrollbarAnimation(base::TimeTicks::Now()); |
| 1247 } |
| 1248 |
1238 } // namespace cc | 1249 } // namespace cc |
OLD | NEW |