| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 AnimateScrollbars(monotonic_time); | 409 AnimateScrollbars(monotonic_time); |
| 410 AnimateTopControls(monotonic_time); | 410 AnimateTopControls(monotonic_time); |
| 411 } | 411 } |
| 412 | 412 |
| 413 void LayerTreeHostImpl::PrepareTiles() { | 413 void LayerTreeHostImpl::PrepareTiles() { |
| 414 if (!tile_manager_) | 414 if (!tile_manager_) |
| 415 return; | 415 return; |
| 416 if (!tile_priorities_dirty_) | 416 if (!tile_priorities_dirty_) |
| 417 return; | 417 return; |
| 418 | 418 |
| 419 client_->WillPrepareTiles(); |
| 419 tile_priorities_dirty_ = false; | 420 tile_priorities_dirty_ = false; |
| 420 tile_manager_->PrepareTiles(global_tile_state_); | 421 tile_manager_->PrepareTiles(global_tile_state_); |
| 421 | |
| 422 client_->DidPrepareTiles(); | 422 client_->DidPrepareTiles(); |
| 423 } | 423 } |
| 424 | 424 |
| 425 void LayerTreeHostImpl::StartPageScaleAnimation( | 425 void LayerTreeHostImpl::StartPageScaleAnimation( |
| 426 const gfx::Vector2d& target_offset, | 426 const gfx::Vector2d& target_offset, |
| 427 bool anchor_point, | 427 bool anchor_point, |
| 428 float page_scale, | 428 float page_scale, |
| 429 base::TimeDelta duration) { | 429 base::TimeDelta duration) { |
| 430 if (!InnerViewportScrollLayer()) | 430 if (!InnerViewportScrollLayer()) |
| 431 return; | 431 return; |
| (...skipping 3008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3440 new_target.SetToMin(layer_impl->MaxScrollOffset()); | 3440 new_target.SetToMin(layer_impl->MaxScrollOffset()); |
| 3441 | 3441 |
| 3442 curve->UpdateTarget( | 3442 curve->UpdateTarget( |
| 3443 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) | 3443 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) |
| 3444 .InSecondsF(), | 3444 .InSecondsF(), |
| 3445 new_target); | 3445 new_target); |
| 3446 | 3446 |
| 3447 return true; | 3447 return true; |
| 3448 } | 3448 } |
| 3449 } // namespace cc | 3449 } // namespace cc |
| OLD | NEW |