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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 288 |
288 void SetViewportSize( | 289 void SetViewportSize( |
289 const gfx::Size& device_viewport_size, | 290 const gfx::Size& device_viewport_size, |
290 const viz::LocalSurfaceId& local_surface_id = viz::LocalSurfaceId()); | 291 const viz::LocalSurfaceId& local_surface_id = viz::LocalSurfaceId()); |
291 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 292 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
292 | 293 |
293 void SetBrowserControlsHeight(float top_height, | 294 void SetBrowserControlsHeight(float top_height, |
294 float bottom_height, | 295 float bottom_height, |
295 bool shrink); | 296 bool shrink); |
296 void SetBrowserControlsShownRatio(float ratio); | 297 void SetBrowserControlsShownRatio(float ratio); |
| 298 void SetScrollBoundaryBehavior( |
| 299 const ScrollBoundaryBehavior& scroll_boundary_behavior); |
297 | 300 |
298 void SetPageScaleFactorAndLimits(float page_scale_factor, | 301 void SetPageScaleFactorAndLimits(float page_scale_factor, |
299 float min_page_scale_factor, | 302 float min_page_scale_factor, |
300 float max_page_scale_factor); | 303 float max_page_scale_factor); |
301 float page_scale_factor() const { return page_scale_factor_; } | 304 float page_scale_factor() const { return page_scale_factor_; } |
302 float min_page_scale_factor() const { return min_page_scale_factor_; } | 305 float min_page_scale_factor() const { return min_page_scale_factor_; } |
303 float max_page_scale_factor() const { return max_page_scale_factor_; } | 306 float max_page_scale_factor() const { return max_page_scale_factor_; } |
304 | 307 |
305 void set_background_color(SkColor color) { background_color_ = color; } | 308 void set_background_color(SkColor color) { background_color_ = color; } |
306 SkColor background_color() const { return background_color_; } | 309 SkColor background_color() const { return background_color_; } |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 viz::SurfaceSequenceGenerator surface_sequence_generator_; | 599 viz::SurfaceSequenceGenerator surface_sequence_generator_; |
597 uint32_t num_consecutive_frames_without_slow_paths_ = 0; | 600 uint32_t num_consecutive_frames_without_slow_paths_ = 0; |
598 | 601 |
599 scoped_refptr<Layer> root_layer_; | 602 scoped_refptr<Layer> root_layer_; |
600 | 603 |
601 ViewportLayers viewport_layers_; | 604 ViewportLayers viewport_layers_; |
602 | 605 |
603 float top_controls_height_ = 0.f; | 606 float top_controls_height_ = 0.f; |
604 float top_controls_shown_ratio_ = 0.f; | 607 float top_controls_shown_ratio_ = 0.f; |
605 bool browser_controls_shrink_blink_size_ = false; | 608 bool browser_controls_shrink_blink_size_ = false; |
| 609 ScrollBoundaryBehavior scroll_boundary_behavior_; |
606 | 610 |
607 float bottom_controls_height_ = 0.f; | 611 float bottom_controls_height_ = 0.f; |
608 | 612 |
609 float device_scale_factor_ = 1.f; | 613 float device_scale_factor_ = 1.f; |
610 float painted_device_scale_factor_ = 1.f; | 614 float painted_device_scale_factor_ = 1.f; |
611 float recording_scale_factor_ = 1.f; | 615 float recording_scale_factor_ = 1.f; |
612 float page_scale_factor_ = 1.f; | 616 float page_scale_factor_ = 1.f; |
613 float min_page_scale_factor_ = 1.f; | 617 float min_page_scale_factor_ = 1.f; |
614 float max_page_scale_factor_ = 1.f; | 618 float max_page_scale_factor_ = 1.f; |
615 gfx::ColorSpace raster_color_space_; | 619 gfx::ColorSpace raster_color_space_; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 | 668 |
665 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> | 669 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> |
666 queued_image_decodes_; | 670 queued_image_decodes_; |
667 | 671 |
668 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 672 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
669 }; | 673 }; |
670 | 674 |
671 } // namespace cc | 675 } // namespace cc |
672 | 676 |
673 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 677 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |