| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 float max_page_scale_factor() const { return max_page_scale_factor_; } | 192 float max_page_scale_factor() const { return max_page_scale_factor_; } |
| 193 | 193 |
| 194 float page_scale_delta() const { return page_scale_factor()->Delta(); } | 194 float page_scale_delta() const { return page_scale_factor()->Delta(); } |
| 195 | 195 |
| 196 SyncedProperty<ScaleGroup>* page_scale_factor(); | 196 SyncedProperty<ScaleGroup>* page_scale_factor(); |
| 197 const SyncedProperty<ScaleGroup>* page_scale_factor() const; | 197 const SyncedProperty<ScaleGroup>* page_scale_factor() const; |
| 198 | 198 |
| 199 void SetDeviceScaleFactor(float device_scale_factor); | 199 void SetDeviceScaleFactor(float device_scale_factor); |
| 200 float device_scale_factor() const { return device_scale_factor_; } | 200 float device_scale_factor() const { return device_scale_factor_; } |
| 201 | 201 |
| 202 void set_painted_device_scale_factor(float painted_device_scale_factor) { |
| 203 painted_device_scale_factor_ = painted_device_scale_factor; |
| 204 } |
| 205 float painted_device_scale_factor() const { |
| 206 return painted_device_scale_factor_; |
| 207 } |
| 208 |
| 202 SyncedElasticOverscroll* elastic_overscroll() { | 209 SyncedElasticOverscroll* elastic_overscroll() { |
| 203 return elastic_overscroll_.get(); | 210 return elastic_overscroll_.get(); |
| 204 } | 211 } |
| 205 const SyncedElasticOverscroll* elastic_overscroll() const { | 212 const SyncedElasticOverscroll* elastic_overscroll() const { |
| 206 return elastic_overscroll_.get(); | 213 return elastic_overscroll_.get(); |
| 207 } | 214 } |
| 208 | 215 |
| 209 SyncedTopControls* top_controls_shown_ratio() { | 216 SyncedTopControls* top_controls_shown_ratio() { |
| 210 return top_controls_shown_ratio_.get(); | 217 return top_controls_shown_ratio_.get(); |
| 211 } | 218 } |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 int inner_viewport_scroll_layer_id_; | 438 int inner_viewport_scroll_layer_id_; |
| 432 int outer_viewport_scroll_layer_id_; | 439 int outer_viewport_scroll_layer_id_; |
| 433 | 440 |
| 434 LayerSelection selection_; | 441 LayerSelection selection_; |
| 435 | 442 |
| 436 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; | 443 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; |
| 437 float min_page_scale_factor_; | 444 float min_page_scale_factor_; |
| 438 float max_page_scale_factor_; | 445 float max_page_scale_factor_; |
| 439 | 446 |
| 440 float device_scale_factor_; | 447 float device_scale_factor_; |
| 448 float painted_device_scale_factor_; |
| 441 | 449 |
| 442 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; | 450 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_; |
| 443 | 451 |
| 444 typedef base::hash_map<int, LayerImpl*> LayerIdMap; | 452 typedef base::hash_map<int, LayerImpl*> LayerIdMap; |
| 445 LayerIdMap layer_id_map_; | 453 LayerIdMap layer_id_map_; |
| 446 | 454 |
| 447 // Maps from clip layer ids to scroll layer ids. Note that this only includes | 455 // Maps from clip layer ids to scroll layer ids. Note that this only includes |
| 448 // the subset of clip layers that act as scrolling containers. (This is | 456 // the subset of clip layers that act as scrolling containers. (This is |
| 449 // derived from LayerImpl::scroll_clip_layer_ and exists to avoid O(n) walks.) | 457 // derived from LayerImpl::scroll_clip_layer_ and exists to avoid O(n) walks.) |
| 450 base::hash_map<int, int> clip_scroll_map_; | 458 base::hash_map<int, int> clip_scroll_map_; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 502 |
| 495 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 503 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 496 | 504 |
| 497 private: | 505 private: |
| 498 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 506 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 499 }; | 507 }; |
| 500 | 508 |
| 501 } // namespace cc | 509 } // namespace cc |
| 502 | 510 |
| 503 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 511 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |