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(); | |
420 tile_priorities_dirty_ = false; | 419 tile_priorities_dirty_ = false; |
421 tile_manager_->PrepareTiles(global_tile_state_); | 420 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 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3443 new_target.SetToMin(layer_impl->MaxScrollOffset()); | 3443 new_target.SetToMin(layer_impl->MaxScrollOffset()); |
3444 | 3444 |
3445 curve->UpdateTarget( | 3445 curve->UpdateTarget( |
3446 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) | 3446 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) |
3447 .InSecondsF(), | 3447 .InSecondsF(), |
3448 new_target); | 3448 new_target); |
3449 | 3449 |
3450 return true; | 3450 return true; |
3451 } | 3451 } |
3452 } // namespace cc | 3452 } // namespace cc |
OLD | NEW |