| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 void SetDeviceScaleFactor(float device_scale_factor); | 222 void SetDeviceScaleFactor(float device_scale_factor); |
| 223 float device_scale_factor() const { return device_scale_factor_; } | 223 float device_scale_factor() const { return device_scale_factor_; } |
| 224 | 224 |
| 225 void set_painted_device_scale_factor(float painted_device_scale_factor) { | 225 void set_painted_device_scale_factor(float painted_device_scale_factor) { |
| 226 painted_device_scale_factor_ = painted_device_scale_factor; | 226 painted_device_scale_factor_ = painted_device_scale_factor; |
| 227 } | 227 } |
| 228 float painted_device_scale_factor() const { | 228 float painted_device_scale_factor() const { |
| 229 return painted_device_scale_factor_; | 229 return painted_device_scale_factor_; |
| 230 } | 230 } |
| 231 | 231 |
| 232 void set_content_source_id(uint32_t id) { content_source_id_ = id; } |
| 233 uint32_t content_source_id() { return content_source_id_; } |
| 234 |
| 232 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); | 235 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); |
| 233 const gfx::ColorSpace& device_color_space() const { | 236 const gfx::ColorSpace& device_color_space() const { |
| 234 return device_color_space_; | 237 return device_color_space_; |
| 235 } | 238 } |
| 236 | 239 |
| 237 SyncedElasticOverscroll* elastic_overscroll() { | 240 SyncedElasticOverscroll* elastic_overscroll() { |
| 238 return elastic_overscroll_.get(); | 241 return elastic_overscroll_.get(); |
| 239 } | 242 } |
| 240 const SyncedElasticOverscroll* elastic_overscroll() const { | 243 const SyncedElasticOverscroll* elastic_overscroll() const { |
| 241 return elastic_overscroll_.get(); | 244 return elastic_overscroll_.get(); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 LayerSelection selection_; | 491 LayerSelection selection_; |
| 489 | 492 |
| 490 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; | 493 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; |
| 491 float min_page_scale_factor_; | 494 float min_page_scale_factor_; |
| 492 float max_page_scale_factor_; | 495 float max_page_scale_factor_; |
| 493 | 496 |
| 494 float device_scale_factor_; | 497 float device_scale_factor_; |
| 495 float painted_device_scale_factor_; | 498 float painted_device_scale_factor_; |
| 496 gfx::ColorSpace device_color_space_; | 499 gfx::ColorSpace device_color_space_; |
| 497 | 500 |
| 501 uint32_t content_source_id_; |
| 502 |
| 498 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; | 503 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; |
| 499 | 504 |
| 500 std::unique_ptr<OwnedLayerImplList> layers_; | 505 std::unique_ptr<OwnedLayerImplList> layers_; |
| 501 LayerImplMap layer_id_map_; | 506 LayerImplMap layer_id_map_; |
| 502 LayerImplList layer_list_; | 507 LayerImplList layer_list_; |
| 503 // Set of layers that need to push properties. | 508 // Set of layers that need to push properties. |
| 504 std::unordered_set<LayerImpl*> layers_that_should_push_properties_; | 509 std::unordered_set<LayerImpl*> layers_that_should_push_properties_; |
| 505 | 510 |
| 506 std::unordered_map<ElementId, int, ElementIdHash> element_layers_map_; | 511 std::unordered_map<ElementId, int, ElementIdHash> element_layers_map_; |
| 507 | 512 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 | 568 |
| 564 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 569 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 565 | 570 |
| 566 private: | 571 private: |
| 567 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 572 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 568 }; | 573 }; |
| 569 | 574 |
| 570 } // namespace cc | 575 } // namespace cc |
| 571 | 576 |
| 572 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 577 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |