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

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

Issue 1435133004: cc: Clean up max frames/swaps pending usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | components/mus/public/cpp/lib/output_surface.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 <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 void ThreadProxy::CommitVSyncParameters(base::TimeTicks timebase, 302 void ThreadProxy::CommitVSyncParameters(base::TimeTicks timebase,
303 base::TimeDelta interval) { 303 base::TimeDelta interval) {
304 impl().scheduler->CommitVSyncParameters(timebase, interval); 304 impl().scheduler->CommitVSyncParameters(timebase, interval);
305 } 305 }
306 306
307 void ThreadProxy::SetEstimatedParentDrawTime(base::TimeDelta draw_time) { 307 void ThreadProxy::SetEstimatedParentDrawTime(base::TimeDelta draw_time) {
308 impl().scheduler->SetEstimatedParentDrawTime(draw_time); 308 impl().scheduler->SetEstimatedParentDrawTime(draw_time);
309 } 309 }
310 310
311 void ThreadProxy::SetMaxSwapsPendingOnImplThread(int max) {
312 impl().scheduler->SetMaxSwapsPending(max);
313 }
314
315 void ThreadProxy::DidSwapBuffersOnImplThread() { 311 void ThreadProxy::DidSwapBuffersOnImplThread() {
316 impl().scheduler->DidSwapBuffers(); 312 impl().scheduler->DidSwapBuffers();
317 } 313 }
318 314
319 void ThreadProxy::DidSwapBuffersCompleteOnImplThread() { 315 void ThreadProxy::DidSwapBuffersCompleteOnImplThread() {
320 TRACE_EVENT0("cc,benchmark", 316 TRACE_EVENT0("cc,benchmark",
321 "ThreadProxy::DidSwapBuffersCompleteOnImplThread"); 317 "ThreadProxy::DidSwapBuffersCompleteOnImplThread");
322 DCHECK(task_runner_provider_->IsImplThread()); 318 DCHECK(task_runner_provider_->IsImplThread());
323 impl().scheduler->DidSwapBuffersComplete(); 319 impl().scheduler->DidSwapBuffersComplete();
324 impl().channel_impl->DidCompleteSwapBuffers(); 320 impl().channel_impl->DidCompleteSwapBuffers();
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 1183
1188 base::WeakPtr<ProxyMain> ThreadProxy::GetMainWeakPtr() { 1184 base::WeakPtr<ProxyMain> ThreadProxy::GetMainWeakPtr() {
1189 return main_thread_weak_ptr_; 1185 return main_thread_weak_ptr_;
1190 } 1186 }
1191 1187
1192 base::WeakPtr<ProxyImpl> ThreadProxy::GetImplWeakPtr() { 1188 base::WeakPtr<ProxyImpl> ThreadProxy::GetImplWeakPtr() {
1193 return impl_thread_weak_ptr_; 1189 return impl_thread_weak_ptr_;
1194 } 1190 }
1195 1191
1196 } // namespace cc 1192 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | components/mus/public/cpp/lib/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698