| 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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 } | 1450 } |
| 1451 | 1451 |
| 1452 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1452 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
| 1453 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1453 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 void LayerTreeImpl::InputScrollAnimationFinished() { | 1456 void LayerTreeImpl::InputScrollAnimationFinished() { |
| 1457 layer_tree_host_impl_->ScrollEnd(); | 1457 layer_tree_host_impl_->ScrollEnd(); |
| 1458 } | 1458 } |
| 1459 | 1459 |
| 1460 bool LayerTreeImpl::SmoothnessTakesPriority() const { |
| 1461 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; |
| 1462 } |
| 1463 |
| 1460 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const { | 1464 BlockingTaskRunner* LayerTreeImpl::BlockingMainThreadTaskRunner() const { |
| 1461 return proxy()->blocking_main_thread_task_runner(); | 1465 return proxy()->blocking_main_thread_task_runner(); |
| 1462 } | 1466 } |
| 1463 | 1467 |
| 1464 void LayerTreeImpl::SetPageScaleAnimation( | 1468 void LayerTreeImpl::SetPageScaleAnimation( |
| 1465 const gfx::Vector2d& target_offset, | 1469 const gfx::Vector2d& target_offset, |
| 1466 bool anchor_point, | 1470 bool anchor_point, |
| 1467 float page_scale, | 1471 float page_scale, |
| 1468 base::TimeDelta duration) { | 1472 base::TimeDelta duration) { |
| 1469 if (!InnerViewportScrollLayer()) | 1473 if (!InnerViewportScrollLayer()) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1496 page_scale, | 1500 page_scale, |
| 1497 duration.InSecondsF()); | 1501 duration.InSecondsF()); |
| 1498 } | 1502 } |
| 1499 } | 1503 } |
| 1500 | 1504 |
| 1501 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { | 1505 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { |
| 1502 return page_scale_animation_.Pass(); | 1506 return page_scale_animation_.Pass(); |
| 1503 } | 1507 } |
| 1504 | 1508 |
| 1505 } // namespace cc | 1509 } // namespace cc |
| OLD | NEW |