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

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

Issue 13859012: cc: Remove cheapness estimator usage from tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still need static_cast to print size_t Created 7 years, 8 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
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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 ThreadProxy::ScheduledActionDrawAndSwapIfPossible() { 1014 ThreadProxy::ScheduledActionDrawAndSwapIfPossible() {
1015 return ScheduledActionDrawAndSwapInternal(false); 1015 return ScheduledActionDrawAndSwapInternal(false);
1016 } 1016 }
1017 1017
1018 ScheduledActionDrawAndSwapResult 1018 ScheduledActionDrawAndSwapResult
1019 ThreadProxy::ScheduledActionDrawAndSwapForced() { 1019 ThreadProxy::ScheduledActionDrawAndSwapForced() {
1020 return ScheduledActionDrawAndSwapInternal(true); 1020 return ScheduledActionDrawAndSwapInternal(true);
1021 } 1021 }
1022 1022
1023 void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) { 1023 void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) {
1024 if (layer_tree_host_impl_)
1025 layer_tree_host_impl_->SetAnticipatedDrawTime(time);
1026
1027 if (current_resource_update_controller_on_impl_thread_) 1024 if (current_resource_update_controller_on_impl_thread_)
1028 current_resource_update_controller_on_impl_thread_ 1025 current_resource_update_controller_on_impl_thread_
1029 ->PerformMoreUpdates(time); 1026 ->PerformMoreUpdates(time);
1030 } 1027 }
1031 1028
1032 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1029 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1033 DCHECK(IsImplThread()); 1030 DCHECK(IsImplThread());
1034 scheduler_on_impl_thread_->BeginFrameComplete(); 1031 scheduler_on_impl_thread_->BeginFrameComplete();
1035 } 1032 }
1036 1033
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 1345
1349 void ThreadProxy::DidReceiveLastInputEventForVSync( 1346 void ThreadProxy::DidReceiveLastInputEventForVSync(
1350 base::TimeTicks frame_time) { 1347 base::TimeTicks frame_time) {
1351 if (render_vsync_notification_enabled_) { 1348 if (render_vsync_notification_enabled_) {
1352 TRACE_EVENT0("cc", "ThreadProxy::DidReceiveLastInputEventForVSync"); 1349 TRACE_EVENT0("cc", "ThreadProxy::DidReceiveLastInputEventForVSync");
1353 DidVSync(frame_time); 1350 DidVSync(frame_time);
1354 } 1351 }
1355 } 1352 }
1356 1353
1357 } // namespace cc 1354 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698