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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 class Layer; | 53 class Layer; |
54 class LayerTreeHostClient; | 54 class LayerTreeHostClient; |
55 class LayerTreeHostImpl; | 55 class LayerTreeHostImpl; |
56 class LayerTreeHostImplClient; | 56 class LayerTreeHostImplClient; |
57 class LayerTreeHostSingleThreadClient; | 57 class LayerTreeHostSingleThreadClient; |
58 class LayerTreeMutator; | 58 class LayerTreeMutator; |
59 class MutatorEvents; | 59 class MutatorEvents; |
60 class MutatorHost; | 60 class MutatorHost; |
61 struct PendingPageScaleAnimation; | 61 struct PendingPageScaleAnimation; |
62 class RenderingStatsInstrumentation; | 62 class RenderingStatsInstrumentation; |
| 63 struct ScrollBoundaryBehavior; |
63 class TaskGraphRunner; | 64 class TaskGraphRunner; |
64 class UIResourceManager; | 65 class UIResourceManager; |
65 struct RenderingStats; | 66 struct RenderingStats; |
66 struct ScrollAndScaleSet; | 67 struct ScrollAndScaleSet; |
67 | 68 |
68 class CC_EXPORT LayerTreeHost | 69 class CC_EXPORT LayerTreeHost |
69 : public NON_EXPORTED_BASE(viz::SurfaceReferenceOwner), | 70 : public NON_EXPORTED_BASE(viz::SurfaceReferenceOwner), |
70 public NON_EXPORTED_BASE(MutatorHostClient) { | 71 public NON_EXPORTED_BASE(MutatorHostClient) { |
71 public: | 72 public: |
72 struct CC_EXPORT InitParams { | 73 struct CC_EXPORT InitParams { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 } | 287 } |
287 | 288 |
288 void SetViewportSize(const gfx::Size& device_viewport_size); | 289 void SetViewportSize(const gfx::Size& device_viewport_size); |
289 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 290 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
290 | 291 |
291 void SetBrowserControlsHeight(float top_height, | 292 void SetBrowserControlsHeight(float top_height, |
292 float bottom_height, | 293 float bottom_height, |
293 bool shrink); | 294 bool shrink); |
294 void SetBrowserControlsShownRatio(float ratio); | 295 void SetBrowserControlsShownRatio(float ratio); |
295 void SetBottomControlsHeight(float height); | 296 void SetBottomControlsHeight(float height); |
| 297 void SetScrollBoundaryBehavior( |
| 298 const ScrollBoundaryBehavior& scroll_boundary_behavior); |
296 | 299 |
297 void SetPageScaleFactorAndLimits(float page_scale_factor, | 300 void SetPageScaleFactorAndLimits(float page_scale_factor, |
298 float min_page_scale_factor, | 301 float min_page_scale_factor, |
299 float max_page_scale_factor); | 302 float max_page_scale_factor); |
300 float page_scale_factor() const { return page_scale_factor_; } | 303 float page_scale_factor() const { return page_scale_factor_; } |
301 float min_page_scale_factor() const { return min_page_scale_factor_; } | 304 float min_page_scale_factor() const { return min_page_scale_factor_; } |
302 float max_page_scale_factor() const { return max_page_scale_factor_; } | 305 float max_page_scale_factor() const { return max_page_scale_factor_; } |
303 | 306 |
304 void set_background_color(SkColor color) { background_color_ = color; } | 307 void set_background_color(SkColor color) { background_color_ = color; } |
305 SkColor background_color() const { return background_color_; } | 308 SkColor background_color() const { return background_color_; } |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 viz::SurfaceSequenceGenerator surface_sequence_generator_; | 594 viz::SurfaceSequenceGenerator surface_sequence_generator_; |
592 uint32_t num_consecutive_frames_without_slow_paths_ = 0; | 595 uint32_t num_consecutive_frames_without_slow_paths_ = 0; |
593 | 596 |
594 scoped_refptr<Layer> root_layer_; | 597 scoped_refptr<Layer> root_layer_; |
595 | 598 |
596 ViewportLayers viewport_layers_; | 599 ViewportLayers viewport_layers_; |
597 | 600 |
598 float top_controls_height_ = 0.f; | 601 float top_controls_height_ = 0.f; |
599 float top_controls_shown_ratio_ = 0.f; | 602 float top_controls_shown_ratio_ = 0.f; |
600 bool browser_controls_shrink_blink_size_ = false; | 603 bool browser_controls_shrink_blink_size_ = false; |
| 604 ScrollBoundaryBehavior scroll_boundary_behavior_; |
601 | 605 |
602 float bottom_controls_height_ = 0.f; | 606 float bottom_controls_height_ = 0.f; |
603 | 607 |
604 float device_scale_factor_ = 1.f; | 608 float device_scale_factor_ = 1.f; |
605 float painted_device_scale_factor_ = 1.f; | 609 float painted_device_scale_factor_ = 1.f; |
606 float page_scale_factor_ = 1.f; | 610 float page_scale_factor_ = 1.f; |
607 float min_page_scale_factor_ = 1.f; | 611 float min_page_scale_factor_ = 1.f; |
608 float max_page_scale_factor_ = 1.f; | 612 float max_page_scale_factor_ = 1.f; |
609 gfx::ColorSpace raster_color_space_; | 613 gfx::ColorSpace raster_color_space_; |
610 | 614 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 | 662 |
659 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> | 663 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> |
660 queued_image_decodes_; | 664 queued_image_decodes_; |
661 | 665 |
662 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 666 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
663 }; | 667 }; |
664 | 668 |
665 } // namespace cc | 669 } // namespace cc |
666 | 670 |
667 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 671 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |