OLD | NEW |
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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 DCHECK(IsImplThread()); | 359 DCHECK(IsImplThread()); |
360 impl().scheduler->SetCanDraw(can_draw); | 360 impl().scheduler->SetCanDraw(can_draw); |
361 UpdateBackgroundAnimateTicking(); | 361 UpdateBackgroundAnimateTicking(); |
362 } | 362 } |
363 | 363 |
364 void ThreadProxy::NotifyReadyToActivate() { | 364 void ThreadProxy::NotifyReadyToActivate() { |
365 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToActivate"); | 365 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToActivate"); |
366 impl().scheduler->NotifyReadyToActivate(); | 366 impl().scheduler->NotifyReadyToActivate(); |
367 } | 367 } |
368 | 368 |
| 369 void ThreadProxy::NotifyReadyToDraw() { |
| 370 TRACE_EVENT0("cc", "ThreadProxy::NotifyReadyToDraw"); |
| 371 impl().scheduler->NotifyReadyToDraw(); |
| 372 } |
| 373 |
369 void ThreadProxy::SetNeedsCommitOnImplThread() { | 374 void ThreadProxy::SetNeedsCommitOnImplThread() { |
370 TRACE_EVENT0("cc", "ThreadProxy::SetNeedsCommitOnImplThread"); | 375 TRACE_EVENT0("cc", "ThreadProxy::SetNeedsCommitOnImplThread"); |
371 DCHECK(IsImplThread()); | 376 DCHECK(IsImplThread()); |
372 impl().scheduler->SetNeedsCommit(); | 377 impl().scheduler->SetNeedsCommit(); |
373 } | 378 } |
374 | 379 |
375 void ThreadProxy::PostAnimationEventsToMainThreadOnImplThread( | 380 void ThreadProxy::PostAnimationEventsToMainThreadOnImplThread( |
376 scoped_ptr<AnimationEventsVector> events) { | 381 scoped_ptr<AnimationEventsVector> events) { |
377 TRACE_EVENT0("cc", | 382 TRACE_EVENT0("cc", |
378 "ThreadProxy::PostAnimationEventsToMainThreadOnImplThread"); | 383 "ThreadProxy::PostAnimationEventsToMainThreadOnImplThread"); |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1362 | 1367 |
1363 impl().timing_history.DidActivateSyncTree(); | 1368 impl().timing_history.DidActivateSyncTree(); |
1364 } | 1369 } |
1365 | 1370 |
1366 void ThreadProxy::DidManageTiles() { | 1371 void ThreadProxy::DidManageTiles() { |
1367 DCHECK(IsImplThread()); | 1372 DCHECK(IsImplThread()); |
1368 impl().scheduler->DidManageTiles(); | 1373 impl().scheduler->DidManageTiles(); |
1369 } | 1374 } |
1370 | 1375 |
1371 } // namespace cc | 1376 } // namespace cc |
OLD | NEW |