| 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_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 AnimateScrollbars(monotonic_time); | 425 AnimateScrollbars(monotonic_time); |
| 426 AnimateTopControls(monotonic_time); | 426 AnimateTopControls(monotonic_time); |
| 427 } | 427 } |
| 428 | 428 |
| 429 void LayerTreeHostImpl::PrepareTiles() { | 429 void LayerTreeHostImpl::PrepareTiles() { |
| 430 if (!tile_manager_) | 430 if (!tile_manager_) |
| 431 return; | 431 return; |
| 432 if (!tile_priorities_dirty_) | 432 if (!tile_priorities_dirty_) |
| 433 return; | 433 return; |
| 434 | 434 |
| 435 client_->WillPrepareTiles(); |
| 435 tile_priorities_dirty_ = false; | 436 tile_priorities_dirty_ = false; |
| 436 tile_manager_->PrepareTiles(global_tile_state_); | 437 tile_manager_->PrepareTiles(global_tile_state_); |
| 437 | |
| 438 client_->DidPrepareTiles(); | 438 client_->DidPrepareTiles(); |
| 439 } | 439 } |
| 440 | 440 |
| 441 void LayerTreeHostImpl::StartPageScaleAnimation( | 441 void LayerTreeHostImpl::StartPageScaleAnimation( |
| 442 const gfx::Vector2d& target_offset, | 442 const gfx::Vector2d& target_offset, |
| 443 bool anchor_point, | 443 bool anchor_point, |
| 444 float page_scale, | 444 float page_scale, |
| 445 base::TimeDelta duration) { | 445 base::TimeDelta duration) { |
| 446 if (!InnerViewportScrollLayer()) | 446 if (!InnerViewportScrollLayer()) |
| 447 return; | 447 return; |
| (...skipping 3138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3586 const gfx::ScrollOffset& scroll_offset) { | 3586 const gfx::ScrollOffset& scroll_offset) { |
| 3587 if (tree_type == LayerTreeType::ACTIVE) { | 3587 if (tree_type == LayerTreeType::ACTIVE) { |
| 3588 SetTreeLayerScrollOffsetMutated(layer_id, active_tree(), scroll_offset); | 3588 SetTreeLayerScrollOffsetMutated(layer_id, active_tree(), scroll_offset); |
| 3589 } else { | 3589 } else { |
| 3590 SetTreeLayerScrollOffsetMutated(layer_id, pending_tree(), scroll_offset); | 3590 SetTreeLayerScrollOffsetMutated(layer_id, pending_tree(), scroll_offset); |
| 3591 SetTreeLayerScrollOffsetMutated(layer_id, recycle_tree(), scroll_offset); | 3591 SetTreeLayerScrollOffsetMutated(layer_id, recycle_tree(), scroll_offset); |
| 3592 } | 3592 } |
| 3593 } | 3593 } |
| 3594 | 3594 |
| 3595 } // namespace cc | 3595 } // namespace cc |
| OLD | NEW |