| 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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 completion.Wait(); | 655 completion.Wait(); |
| 656 } | 656 } |
| 657 | 657 |
| 658 void ThreadProxy::ForceSerializeOnSwapBuffersOnImplThread( | 658 void ThreadProxy::ForceSerializeOnSwapBuffersOnImplThread( |
| 659 CompletionEvent* completion) { | 659 CompletionEvent* completion) { |
| 660 if (impl().layer_tree_host_impl->renderer()) | 660 if (impl().layer_tree_host_impl->renderer()) |
| 661 impl().layer_tree_host_impl->renderer()->DoNoOp(); | 661 impl().layer_tree_host_impl->renderer()->DoNoOp(); |
| 662 completion->Signal(); | 662 completion->Signal(); |
| 663 } | 663 } |
| 664 | 664 |
| 665 bool ThreadProxy::SupportsImplScrolling() const { |
| 666 return true; |
| 667 } |
| 668 |
| 665 void ThreadProxy::SetDebugState(const LayerTreeDebugState& debug_state) { | 669 void ThreadProxy::SetDebugState(const LayerTreeDebugState& debug_state) { |
| 666 Proxy::ImplThreadTaskRunner()->PostTask( | 670 Proxy::ImplThreadTaskRunner()->PostTask( |
| 667 FROM_HERE, | 671 FROM_HERE, |
| 668 base::Bind(&ThreadProxy::SetDebugStateOnImplThread, | 672 base::Bind(&ThreadProxy::SetDebugStateOnImplThread, |
| 669 impl_thread_weak_ptr_, | 673 impl_thread_weak_ptr_, |
| 670 debug_state)); | 674 debug_state)); |
| 671 } | 675 } |
| 672 | 676 |
| 673 void ThreadProxy::SetDebugStateOnImplThread( | 677 void ThreadProxy::SetDebugStateOnImplThread( |
| 674 const LayerTreeDebugState& debug_state) { | 678 const LayerTreeDebugState& debug_state) { |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 | 1440 |
| 1437 impl().timing_history.DidActivatePendingTree(); | 1441 impl().timing_history.DidActivatePendingTree(); |
| 1438 } | 1442 } |
| 1439 | 1443 |
| 1440 void ThreadProxy::DidManageTiles() { | 1444 void ThreadProxy::DidManageTiles() { |
| 1441 DCHECK(IsImplThread()); | 1445 DCHECK(IsImplThread()); |
| 1442 impl().scheduler->DidManageTiles(); | 1446 impl().scheduler->DidManageTiles(); |
| 1443 } | 1447 } |
| 1444 | 1448 |
| 1445 } // namespace cc | 1449 } // namespace cc |
| OLD | NEW |