| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; } | 232 void set_content_source_id(uint32_t id) { content_source_id_ = id; } |
| 233 uint32_t content_source_id() { return content_source_id_; } | 233 uint32_t content_source_id() { return content_source_id_; } |
| 234 | 234 |
| 235 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); | 235 void SetRasterColorSpace(const gfx::ColorSpace& raster_color_space); |
| 236 const gfx::ColorSpace& device_color_space() const { | 236 const gfx::ColorSpace& raster_color_space() const { |
| 237 return device_color_space_; | 237 return raster_color_space_; |
| 238 } | 238 } |
| 239 | 239 |
| 240 SyncedElasticOverscroll* elastic_overscroll() { | 240 SyncedElasticOverscroll* elastic_overscroll() { |
| 241 return elastic_overscroll_.get(); | 241 return elastic_overscroll_.get(); |
| 242 } | 242 } |
| 243 const SyncedElasticOverscroll* elastic_overscroll() const { | 243 const SyncedElasticOverscroll* elastic_overscroll() const { |
| 244 return elastic_overscroll_.get(); | 244 return elastic_overscroll_.get(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 SyncedBrowserControls* top_controls_shown_ratio() { | 247 SyncedBrowserControls* top_controls_shown_ratio() { |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 int outer_viewport_scroll_layer_id_; | 489 int outer_viewport_scroll_layer_id_; |
| 490 | 490 |
| 491 LayerSelection selection_; | 491 LayerSelection selection_; |
| 492 | 492 |
| 493 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; | 493 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; |
| 494 float min_page_scale_factor_; | 494 float min_page_scale_factor_; |
| 495 float max_page_scale_factor_; | 495 float max_page_scale_factor_; |
| 496 | 496 |
| 497 float device_scale_factor_; | 497 float device_scale_factor_; |
| 498 float painted_device_scale_factor_; | 498 float painted_device_scale_factor_; |
| 499 gfx::ColorSpace device_color_space_; | 499 gfx::ColorSpace raster_color_space_; |
| 500 | 500 |
| 501 uint32_t content_source_id_; | 501 uint32_t content_source_id_; |
| 502 | 502 |
| 503 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; | 503 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; |
| 504 | 504 |
| 505 std::unique_ptr<OwnedLayerImplList> layers_; | 505 std::unique_ptr<OwnedLayerImplList> layers_; |
| 506 LayerImplMap layer_id_map_; | 506 LayerImplMap layer_id_map_; |
| 507 LayerImplList layer_list_; | 507 LayerImplList layer_list_; |
| 508 // Set of layers that need to push properties. | 508 // Set of layers that need to push properties. |
| 509 std::unordered_set<LayerImpl*> layers_that_should_push_properties_; | 509 std::unordered_set<LayerImpl*> layers_that_should_push_properties_; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 | 568 |
| 569 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 569 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 570 | 570 |
| 571 private: | 571 private: |
| 572 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 572 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 573 }; | 573 }; |
| 574 | 574 |
| 575 } // namespace cc | 575 } // namespace cc |
| 576 | 576 |
| 577 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 577 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |