| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 void SetNeedsRedraw(); | 335 void SetNeedsRedraw(); |
| 336 | 336 |
| 337 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; | 337 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; |
| 338 | 338 |
| 339 size_t memory_allocation_limit_bytes() const; | 339 size_t memory_allocation_limit_bytes() const; |
| 340 int memory_allocation_priority_cutoff() const; | 340 int memory_allocation_priority_cutoff() const; |
| 341 | 341 |
| 342 void SetViewportSize(const gfx::Size& device_viewport_size); | 342 void SetViewportSize(const gfx::Size& device_viewport_size); |
| 343 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 343 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| 344 | 344 |
| 345 void SetTopControlsLayoutHeight(float top_controls_layout_height); | |
| 346 float top_controls_layout_height() const { | |
| 347 return top_controls_layout_height_; | |
| 348 } | |
| 349 | |
| 350 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id, | 345 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id, |
| 351 const gfx::Size& overhang_ui_resource_size); | 346 const gfx::Size& overhang_ui_resource_size); |
| 352 | 347 |
| 353 void SetDeviceScaleFactor(float device_scale_factor); | 348 void SetDeviceScaleFactor(float device_scale_factor); |
| 354 float device_scale_factor() const { return device_scale_factor_; } | 349 float device_scale_factor() const { return device_scale_factor_; } |
| 355 | 350 |
| 356 const gfx::Transform& DrawTransform() const; | 351 const gfx::Transform& DrawTransform() const; |
| 357 | 352 |
| 358 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); | 353 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); |
| 359 | 354 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 gfx::Size device_viewport_size_; | 651 gfx::Size device_viewport_size_; |
| 657 | 652 |
| 658 // Conversion factor from CSS pixels to physical pixels when | 653 // Conversion factor from CSS pixels to physical pixels when |
| 659 // pageScaleFactor=1. | 654 // pageScaleFactor=1. |
| 660 float device_scale_factor_; | 655 float device_scale_factor_; |
| 661 | 656 |
| 662 // UI resource to use for drawing overhang gutters. | 657 // UI resource to use for drawing overhang gutters. |
| 663 UIResourceId overhang_ui_resource_id_; | 658 UIResourceId overhang_ui_resource_id_; |
| 664 gfx::Size overhang_ui_resource_size_; | 659 gfx::Size overhang_ui_resource_size_; |
| 665 | 660 |
| 666 // Height of the top controls as known by Blink. | |
| 667 float top_controls_layout_height_; | |
| 668 | |
| 669 // Optional top-level constraints that can be set by the OutputSurface. | 661 // Optional top-level constraints that can be set by the OutputSurface. |
| 670 // - external_transform_ applies a transform above the root layer | 662 // - external_transform_ applies a transform above the root layer |
| 671 // - external_viewport_ is used DrawProperties, tile management and | 663 // - external_viewport_ is used DrawProperties, tile management and |
| 672 // glViewport/window projection matrix. | 664 // glViewport/window projection matrix. |
| 673 // - external_clip_ specifies a top-level clip rect | 665 // - external_clip_ specifies a top-level clip rect |
| 674 // - viewport_rect_for_tile_priority_ is the rect in view space used for | 666 // - viewport_rect_for_tile_priority_ is the rect in view space used for |
| 675 // tiling priority. | 667 // tiling priority. |
| 676 gfx::Transform external_transform_; | 668 gfx::Transform external_transform_; |
| 677 gfx::Rect external_viewport_; | 669 gfx::Rect external_viewport_; |
| 678 gfx::Rect external_clip_; | 670 gfx::Rect external_clip_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 705 | 697 |
| 706 std::vector<PictureLayerImpl*> picture_layers_; | 698 std::vector<PictureLayerImpl*> picture_layers_; |
| 707 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 699 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 708 | 700 |
| 709 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 701 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 710 }; | 702 }; |
| 711 | 703 |
| 712 } // namespace cc | 704 } // namespace cc |
| 713 | 705 |
| 714 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 706 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |