Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: cc/thread_proxy.cc

Issue 12408028: cc: Delay start of scrollbar animation setNeedsRedraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 187970 and update test Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« cc/layer_tree_host_impl.h ('K') | « cc/thread_proxy.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« cc/layer_tree_host_impl.h ('K') | « cc/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698