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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
243 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 243 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
244 | 244 |
245 bool has_gpu_rasterization_trigger() const { | 245 bool has_gpu_rasterization_trigger() const { |
246 return has_gpu_rasterization_trigger_; | 246 return has_gpu_rasterization_trigger_; |
247 } | 247 } |
248 void SetHasGpuRasterizationTrigger(bool has_trigger); | 248 void SetHasGpuRasterizationTrigger(bool has_trigger); |
249 | 249 |
250 void SetViewportSize(const gfx::Size& device_viewport_size); | 250 void SetViewportSize(const gfx::Size& device_viewport_size); |
251 void SetTopControlsHeight(float height, bool shrink); | 251 void SetTopControlsHeight(float height, bool shrink); |
252 void SetTopControlsShownRatio(float ratio); | 252 void SetTopControlsShownRatio(float ratio); |
253 void setBottomControlHeight(float height); | |
Khushal
2016/08/17 04:45:34
Sorry about the rebase pain. :(
You can move this
| |
253 | 254 |
254 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 255 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
255 | 256 |
256 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 257 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
257 void SetPageScaleFactorAndLimits(float page_scale_factor, | 258 void SetPageScaleFactorAndLimits(float page_scale_factor, |
258 float min_page_scale_factor, | 259 float min_page_scale_factor, |
259 float max_page_scale_factor); | 260 float max_page_scale_factor); |
260 float page_scale_factor() const { return page_scale_factor_; } | 261 float page_scale_factor() const { return page_scale_factor_; } |
261 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } | 262 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } |
262 | 263 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
533 | 534 |
534 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 535 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
535 | 536 |
536 const LayerTreeSettings settings_; | 537 const LayerTreeSettings settings_; |
537 LayerTreeDebugState debug_state_; | 538 LayerTreeDebugState debug_state_; |
538 | 539 |
539 gfx::Size device_viewport_size_; | 540 gfx::Size device_viewport_size_; |
540 bool top_controls_shrink_blink_size_; | 541 bool top_controls_shrink_blink_size_; |
541 float top_controls_height_; | 542 float top_controls_height_; |
542 float top_controls_shown_ratio_; | 543 float top_controls_shown_ratio_; |
544 float bottom_controls_height_; | |
Khushal
2016/08/17 04:45:34
Move to LayerTree.
| |
543 float device_scale_factor_; | 545 float device_scale_factor_; |
544 float painted_device_scale_factor_; | 546 float painted_device_scale_factor_; |
545 | 547 |
546 bool visible_; | 548 bool visible_; |
547 | 549 |
548 float page_scale_factor_; | 550 float page_scale_factor_; |
549 float min_page_scale_factor_; | 551 float min_page_scale_factor_; |
550 float max_page_scale_factor_; | 552 float max_page_scale_factor_; |
551 gfx::Vector2dF elastic_overscroll_; | 553 gfx::Vector2dF elastic_overscroll_; |
552 bool has_gpu_rasterization_trigger_; | 554 bool has_gpu_rasterization_trigger_; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
598 | 600 |
599 // Layer tree that hold layers. | 601 // Layer tree that hold layers. |
600 LayerTree layer_tree_; | 602 LayerTree layer_tree_; |
601 | 603 |
602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 604 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
603 }; | 605 }; |
604 | 606 |
605 } // namespace cc | 607 } // namespace cc |
606 | 608 |
607 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 609 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |