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