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

Side by Side Diff: cc/trees/thread_proxy.cc

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/quad_culler_unittest.cc ('k') | cc/trees/tree_synchronizer_unittest.cc » ('j') | 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/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"
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 ScheduledActionDrawAndSwapResult 997 ScheduledActionDrawAndSwapResult
998 ThreadProxy::ScheduledActionDrawAndSwapForced() { 998 ThreadProxy::ScheduledActionDrawAndSwapForced() {
999 return ScheduledActionDrawAndSwapInternal(true); 999 return ScheduledActionDrawAndSwapInternal(true);
1000 } 1000 }
1001 1001
1002 void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) { 1002 void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) {
1003 if (layer_tree_host_impl_) 1003 if (layer_tree_host_impl_)
1004 layer_tree_host_impl_->SetAnticipatedDrawTime(time); 1004 layer_tree_host_impl_->SetAnticipatedDrawTime(time);
1005 1005
1006 if (current_resource_update_controller_on_impl_thread_) 1006 if (current_resource_update_controller_on_impl_thread_)
1007 current_resource_update_controller_on_impl_thread_->PerformMoreUpdates(time) ; 1007 current_resource_update_controller_on_impl_thread_
1008 ->PerformMoreUpdates(time);
1008 } 1009 }
1009 1010
1010 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1011 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1011 DCHECK(IsImplThread()); 1012 DCHECK(IsImplThread());
1012 scheduler_on_impl_thread_->BeginFrameComplete(); 1013 scheduler_on_impl_thread_->BeginFrameComplete();
1013 } 1014 }
1014 1015
1015 void ThreadProxy::DidCommitAndDrawFrame() { 1016 void ThreadProxy::DidCommitAndDrawFrame() {
1016 DCHECK(IsMainThread()); 1017 DCHECK(IsMainThread());
1017 if (!layer_tree_host_) 1018 if (!layer_tree_host_)
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread, 1313 base::Bind(&ThreadProxy::StartScrollbarAnimationOnImplThread,
1313 impl_thread_weak_ptr_), 1314 impl_thread_weak_ptr_),
1314 delay); 1315 delay);
1315 } 1316 }
1316 1317
1317 void ThreadProxy::StartScrollbarAnimationOnImplThread() { 1318 void ThreadProxy::StartScrollbarAnimationOnImplThread() {
1318 layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now()); 1319 layer_tree_host_impl_->StartScrollbarAnimation(base::TimeTicks::Now());
1319 } 1320 }
1320 1321
1321 } // namespace cc 1322 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/quad_culler_unittest.cc ('k') | cc/trees/tree_synchronizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698