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