| 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/layer_tree_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 } | 1552 } |
| 1553 | 1553 |
| 1554 bool LayerTreeImpl::SmoothnessTakesPriority() const { | 1554 bool LayerTreeImpl::SmoothnessTakesPriority() const { |
| 1555 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; | 1555 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; |
| 1556 } | 1556 } |
| 1557 | 1557 |
| 1558 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const { | 1558 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const { |
| 1559 return proxy()->blocking_main_thread_task_runner(); | 1559 return proxy()->blocking_main_thread_task_runner(); |
| 1560 } | 1560 } |
| 1561 | 1561 |
| 1562 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() |
| 1563 const { |
| 1564 return layer_tree_host_impl_; |
| 1565 } |
| 1566 |
| 1562 void LayerTreeImpl::SetPendingPageScaleAnimation( | 1567 void LayerTreeImpl::SetPendingPageScaleAnimation( |
| 1563 scoped_ptr<PendingPageScaleAnimation> pending_animation) { | 1568 scoped_ptr<PendingPageScaleAnimation> pending_animation) { |
| 1564 pending_page_scale_animation_ = pending_animation.Pass(); | 1569 pending_page_scale_animation_ = pending_animation.Pass(); |
| 1565 } | 1570 } |
| 1566 | 1571 |
| 1567 scoped_ptr<PendingPageScaleAnimation> | 1572 scoped_ptr<PendingPageScaleAnimation> |
| 1568 LayerTreeImpl::TakePendingPageScaleAnimation() { | 1573 LayerTreeImpl::TakePendingPageScaleAnimation() { |
| 1569 return pending_page_scale_animation_.Pass(); | 1574 return pending_page_scale_animation_.Pass(); |
| 1570 } | 1575 } |
| 1571 | 1576 |
| 1572 } // namespace cc | 1577 } // namespace cc |
| OLD | NEW |