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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 | 483 |
484 protected: | 484 protected: |
485 LayerTreeHostImpl( | 485 LayerTreeHostImpl( |
486 const LayerTreeSettings& settings, | 486 const LayerTreeSettings& settings, |
487 LayerTreeHostImplClient* client, | 487 LayerTreeHostImplClient* client, |
488 Proxy* proxy, | 488 Proxy* proxy, |
489 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 489 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
490 SharedBitmapManager* manager, | 490 SharedBitmapManager* manager, |
491 int id); | 491 int id); |
492 | 492 |
493 void UpdateInnerViewportContainerSize(); | 493 void UpdateViewportContainerSizes(); |
494 | 494 |
495 // Virtual for testing. | 495 // Virtual for testing. |
496 virtual void AnimateLayers(base::TimeTicks monotonic_time); | 496 virtual void AnimateLayers(base::TimeTicks monotonic_time); |
497 | 497 |
498 // Virtual for testing. | 498 // Virtual for testing. |
499 virtual base::TimeDelta LowFrequencyAnimationInterval() const; | 499 virtual base::TimeDelta LowFrequencyAnimationInterval() const; |
500 | 500 |
501 const AnimationRegistrar::AnimationControllerMap& | 501 const AnimationRegistrar::AnimationControllerMap& |
502 active_animation_controllers() const { | 502 active_animation_controllers() const { |
503 return animation_registrar_->active_animation_controllers(); | 503 return animation_registrar_->active_animation_controllers(); |
(...skipping 18 matching lines...) Expand all Loading... |
522 // Scroll by preferring to move the outer viewport first, only moving the | 522 // Scroll by preferring to move the outer viewport first, only moving the |
523 // inner if the outer is at its scroll extents. | 523 // inner if the outer is at its scroll extents. |
524 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 524 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
525 // Scroll by preferring to move the inner viewport first, only moving the | 525 // Scroll by preferring to move the inner viewport first, only moving the |
526 // outer if the inner is at its scroll extents. | 526 // outer if the inner is at its scroll extents. |
527 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta); | 527 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta); |
528 void AnimatePageScale(base::TimeTicks monotonic_time); | 528 void AnimatePageScale(base::TimeTicks monotonic_time); |
529 void AnimateScrollbars(base::TimeTicks monotonic_time); | 529 void AnimateScrollbars(base::TimeTicks monotonic_time); |
530 void AnimateTopControls(base::TimeTicks monotonic_time); | 530 void AnimateTopControls(base::TimeTicks monotonic_time); |
531 | 531 |
| 532 bool ShouldTopControlsConsumeScroll(const gfx::Vector2dF& scroll_delta) const; |
| 533 |
532 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 534 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
533 LayerImpl* layer_impl, | 535 LayerImpl* layer_impl, |
534 float scale_from_viewport_to_screen_space, | 536 float scale_from_viewport_to_screen_space, |
535 const gfx::PointF& viewport_point, | 537 const gfx::PointF& viewport_point, |
536 const gfx::Vector2dF& viewport_delta); | 538 const gfx::Vector2dF& viewport_delta); |
537 | 539 |
538 void TrackDamageForAllSurfaces( | 540 void TrackDamageForAllSurfaces( |
539 LayerImpl* root_draw_layer, | 541 LayerImpl* root_draw_layer, |
540 const LayerImplList& render_surface_layer_list); | 542 const LayerImplList& render_surface_layer_list); |
541 | 543 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 | 704 |
703 std::vector<PictureLayerImpl*> picture_layers_; | 705 std::vector<PictureLayerImpl*> picture_layers_; |
704 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 706 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
705 | 707 |
706 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 708 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
707 }; | 709 }; |
708 | 710 |
709 } // namespace cc | 711 } // namespace cc |
710 | 712 |
711 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 713 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |