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

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: Fix counting of required for activation tiles. Created 6 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') | 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 "cc", "ThreadProxy::OnCanDrawStateChanged", "can_draw", can_draw); 349 "cc", "ThreadProxy::OnCanDrawStateChanged", "can_draw", can_draw);
350 DCHECK(IsImplThread()); 350 DCHECK(IsImplThread());
351 impl().scheduler->SetCanDraw(can_draw); 351 impl().scheduler->SetCanDraw(can_draw);
352 } 352 }
353 353
354 void ThreadProxy::NotifyReadyToActivate() { 354 void ThreadProxy::NotifyReadyToActivate() {
355 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToActivate"); 355 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToActivate");
356 impl().scheduler->NotifyReadyToActivate(); 356 impl().scheduler->NotifyReadyToActivate();
357 } 357 }
358 358
359 void ThreadProxy::NotifyReadyToDraw() {
360 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToDraw");
361 impl().scheduler->NotifyReadyToDraw();
362 }
363
359 void ThreadProxy::SetNeedsCommitOnImplThread() { 364 void ThreadProxy::SetNeedsCommitOnImplThread() {
360 TRACE_EVENT0("cc", "ThreadProxy::SetNeedsCommitOnImplThread"); 365 TRACE_EVENT0("cc", "ThreadProxy::SetNeedsCommitOnImplThread");
361 DCHECK(IsImplThread()); 366 DCHECK(IsImplThread());
362 impl().scheduler->SetNeedsCommit(); 367 impl().scheduler->SetNeedsCommit();
363 } 368 }
364 369
365 void ThreadProxy::PostAnimationEventsToMainThreadOnImplThread( 370 void ThreadProxy::PostAnimationEventsToMainThreadOnImplThread(
366 scoped_ptr<AnimationEventsVector> events) { 371 scoped_ptr<AnimationEventsVector> events) {
367 TRACE_EVENT0("cc", 372 TRACE_EVENT0("cc",
368 "ThreadProxy::PostAnimationEventsToMainThreadOnImplThread"); 373 "ThreadProxy::PostAnimationEventsToMainThreadOnImplThread");
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 1360
1356 impl().timing_history.DidActivateSyncTree(); 1361 impl().timing_history.DidActivateSyncTree();
1357 } 1362 }
1358 1363
1359 void ThreadProxy::DidManageTiles() { 1364 void ThreadProxy::DidManageTiles() {
1360 DCHECK(IsImplThread()); 1365 DCHECK(IsImplThread());
1361 impl().scheduler->DidManageTiles(); 1366 impl().scheduler->DidManageTiles();
1362 } 1367 }
1363 1368
1364 } // namespace cc 1369 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698