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

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

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/trees/single_thread_proxy.cc ('K') | « cc/trees/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/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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 DCHECK(IsImplThread()); 360 DCHECK(IsImplThread());
361 impl().scheduler->SetCanDraw(can_draw); 361 impl().scheduler->SetCanDraw(can_draw);
362 UpdateBackgroundAnimateTicking(); 362 UpdateBackgroundAnimateTicking();
363 } 363 }
364 364
365 void ThreadProxy::NotifyReadyToActivate() { 365 void ThreadProxy::NotifyReadyToActivate() {
366 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToActivate"); 366 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToActivate");
367 impl().scheduler->NotifyReadyToActivate(); 367 impl().scheduler->NotifyReadyToActivate();
368 } 368 }
369 369
370 void ThreadProxy::NotifyReadyToDraw() {
371 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToDraw");
372 impl().scheduler->NotifyReadyToDraw();
373 }
374
370 void ThreadProxy::SetNeedsCommitOnImplThread() { 375 void ThreadProxy::SetNeedsCommitOnImplThread() {
371 TRACE_EVENT0("cc", "ThreadProxy::SetNeedsCommitOnImplThread"); 376 TRACE_EVENT0("cc", "ThreadProxy::SetNeedsCommitOnImplThread");
372 DCHECK(IsImplThread()); 377 DCHECK(IsImplThread());
373 impl().scheduler->SetNeedsCommit(); 378 impl().scheduler->SetNeedsCommit();
374 } 379 }
375 380
376 void ThreadProxy::PostAnimationEventsToMainThreadOnImplThread( 381 void ThreadProxy::PostAnimationEventsToMainThreadOnImplThread(
377 scoped_ptr<AnimationEventsVector> events) { 382 scoped_ptr<AnimationEventsVector> events) {
378 TRACE_EVENT0("cc", 383 TRACE_EVENT0("cc",
379 "ThreadProxy::PostAnimationEventsToMainThreadOnImplThread"); 384 "ThreadProxy::PostAnimationEventsToMainThreadOnImplThread");
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1378
1374 impl().timing_history.DidActivateSyncTree(); 1379 impl().timing_history.DidActivateSyncTree();
1375 } 1380 }
1376 1381
1377 void ThreadProxy::DidManageTiles() { 1382 void ThreadProxy::DidManageTiles() {
1378 DCHECK(IsImplThread()); 1383 DCHECK(IsImplThread());
1379 impl().scheduler->DidManageTiles(); 1384 impl().scheduler->DidManageTiles();
1380 } 1385 }
1381 1386
1382 } // namespace cc 1387 } // namespace cc
OLDNEW
« cc/trees/single_thread_proxy.cc ('K') | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698