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

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

Issue 867773002: Revert of Add more trace events to "benchmark" category (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 void ThreadProxy::SetMaxSwapsPendingOnImplThread(int max) { 338 void ThreadProxy::SetMaxSwapsPendingOnImplThread(int max) {
339 impl().scheduler->SetMaxSwapsPending(max); 339 impl().scheduler->SetMaxSwapsPending(max);
340 } 340 }
341 341
342 void ThreadProxy::DidSwapBuffersOnImplThread() { 342 void ThreadProxy::DidSwapBuffersOnImplThread() {
343 impl().scheduler->DidSwapBuffers(); 343 impl().scheduler->DidSwapBuffers();
344 } 344 }
345 345
346 void ThreadProxy::DidSwapBuffersCompleteOnImplThread() { 346 void ThreadProxy::DidSwapBuffersCompleteOnImplThread() {
347 TRACE_EVENT0("cc,benchmark", 347 TRACE_EVENT0("cc", "ThreadProxy::DidSwapBuffersCompleteOnImplThread");
348 "ThreadProxy::DidSwapBuffersCompleteOnImplThread");
349 DCHECK(IsImplThread()); 348 DCHECK(IsImplThread());
350 impl().scheduler->DidSwapBuffersComplete(); 349 impl().scheduler->DidSwapBuffersComplete();
351 Proxy::MainThreadTaskRunner()->PostTask( 350 Proxy::MainThreadTaskRunner()->PostTask(
352 FROM_HERE, 351 FROM_HERE,
353 base::Bind(&ThreadProxy::DidCompleteSwapBuffers, main_thread_weak_ptr_)); 352 base::Bind(&ThreadProxy::DidCompleteSwapBuffers, main_thread_weak_ptr_));
354 } 353 }
355 354
356 void ThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) { 355 void ThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
357 impl().layer_tree_host_impl->WillBeginImplFrame(args); 356 impl().layer_tree_host_impl->WillBeginImplFrame(args);
358 } 357 }
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 1347
1349 impl().timing_history.DidActivateSyncTree(); 1348 impl().timing_history.DidActivateSyncTree();
1350 } 1349 }
1351 1350
1352 void ThreadProxy::DidPrepareTiles() { 1351 void ThreadProxy::DidPrepareTiles() {
1353 DCHECK(IsImplThread()); 1352 DCHECK(IsImplThread());
1354 impl().scheduler->DidPrepareTiles(); 1353 impl().scheduler->DidPrepareTiles();
1355 } 1354 }
1356 1355
1357 } // namespace cc 1356 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698