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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |