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 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 delta = base::TimeDelta(); | 1396 delta = base::TimeDelta(); |
1397 Proxy::ImplThreadTaskRunner()->PostDelayedTask(FROM_HERE, closure, delta); | 1397 Proxy::ImplThreadTaskRunner()->PostDelayedTask(FROM_HERE, closure, delta); |
1398 } | 1398 } |
1399 | 1399 |
1400 void ThreadProxy::DidBeginImplFrameDeadline() { | 1400 void ThreadProxy::DidBeginImplFrameDeadline() { |
1401 impl().layer_tree_host_impl->ResetCurrentFrameTimeForNextFrame(); | 1401 impl().layer_tree_host_impl->ResetCurrentFrameTimeForNextFrame(); |
1402 } | 1402 } |
1403 | 1403 |
1404 void ThreadProxy::ReadyToFinalizeTextureUpdates() { | 1404 void ThreadProxy::ReadyToFinalizeTextureUpdates() { |
1405 DCHECK(IsImplThread()); | 1405 DCHECK(IsImplThread()); |
1406 impl().scheduler->FinishCommit(); | 1406 impl().scheduler->NotifyReadyToCommit(); |
1407 } | 1407 } |
1408 | 1408 |
1409 void ThreadProxy::DidCommitAndDrawFrame() { | 1409 void ThreadProxy::DidCommitAndDrawFrame() { |
1410 DCHECK(IsMainThread()); | 1410 DCHECK(IsMainThread()); |
1411 if (!layer_tree_host()) | 1411 if (!layer_tree_host()) |
1412 return; | 1412 return; |
1413 layer_tree_host()->DidCommitAndDrawFrame(); | 1413 layer_tree_host()->DidCommitAndDrawFrame(); |
1414 } | 1414 } |
1415 | 1415 |
1416 void ThreadProxy::DidCompleteSwapBuffers() { | 1416 void ThreadProxy::DidCompleteSwapBuffers() { |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1735 | 1735 |
1736 impl().timing_history.DidActivatePendingTree(); | 1736 impl().timing_history.DidActivatePendingTree(); |
1737 } | 1737 } |
1738 | 1738 |
1739 void ThreadProxy::DidManageTiles() { | 1739 void ThreadProxy::DidManageTiles() { |
1740 DCHECK(IsImplThread()); | 1740 DCHECK(IsImplThread()); |
1741 impl().scheduler->DidManageTiles(); | 1741 impl().scheduler->DidManageTiles(); |
1742 } | 1742 } |
1743 | 1743 |
1744 } // namespace cc | 1744 } // namespace cc |
OLD | NEW |