| 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 <limits> | 7 #include <limits> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 } | 1459 } |
| 1460 | 1460 |
| 1461 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1461 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
| 1462 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1462 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
| 1463 } | 1463 } |
| 1464 | 1464 |
| 1465 void LayerTreeImpl::InputScrollAnimationFinished() { | 1465 void LayerTreeImpl::InputScrollAnimationFinished() { |
| 1466 layer_tree_host_impl_->ScrollEnd(); | 1466 layer_tree_host_impl_->ScrollEnd(); |
| 1467 } | 1467 } |
| 1468 | 1468 |
| 1469 bool LayerTreeImpl::SmoothnessTakesPriority() const { |
| 1470 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; |
| 1471 } |
| 1472 |
| 1469 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const { | 1473 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const { |
| 1470 return proxy()->blocking_main_thread_task_runner(); | 1474 return proxy()->blocking_main_thread_task_runner(); |
| 1471 } | 1475 } |
| 1472 | 1476 |
| 1473 void LayerTreeImpl::SetPageScaleAnimation( | 1477 void LayerTreeImpl::SetPageScaleAnimation( |
| 1474 const gfx::Vector2d& target_offset, | 1478 const gfx::Vector2d& target_offset, |
| 1475 bool anchor_point, | 1479 bool anchor_point, |
| 1476 float page_scale, | 1480 float page_scale, |
| 1477 base::TimeDelta duration) { | 1481 base::TimeDelta duration) { |
| 1478 if (!InnerViewportScrollLayer()) | 1482 if (!InnerViewportScrollLayer()) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1505 page_scale, | 1509 page_scale, |
| 1506 duration.InSecondsF()); | 1510 duration.InSecondsF()); |
| 1507 } | 1511 } |
| 1508 } | 1512 } |
| 1509 | 1513 |
| 1510 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { | 1514 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { |
| 1511 return page_scale_animation_.Pass(); | 1515 return page_scale_animation_.Pass(); |
| 1512 } | 1516 } |
| 1513 | 1517 |
| 1514 } // namespace cc | 1518 } // namespace cc |
| OLD | NEW |