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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 bool HasPendingPageScaleAnimation() const; | 302 bool HasPendingPageScaleAnimation() const; |
303 | 303 |
304 void SetDeviceScaleFactor(float device_scale_factor); | 304 void SetDeviceScaleFactor(float device_scale_factor); |
305 float device_scale_factor() const { return device_scale_factor_; } | 305 float device_scale_factor() const { return device_scale_factor_; } |
306 | 306 |
307 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); | 307 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
308 float painted_device_scale_factor() const { | 308 float painted_device_scale_factor() const { |
309 return painted_device_scale_factor_; | 309 return painted_device_scale_factor_; |
310 } | 310 } |
311 | 311 |
| 312 void SetContentSourceId(uint32_t); |
| 313 uint32_t content_source_id() const { return content_source_id_; } |
| 314 |
312 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); | 315 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); |
313 const gfx::ColorSpace& device_color_space() const { | 316 const gfx::ColorSpace& device_color_space() const { |
314 return device_color_space_; | 317 return device_color_space_; |
315 } | 318 } |
316 | 319 |
317 // Used externally by blink for setting the PropertyTrees when | 320 // Used externally by blink for setting the PropertyTrees when |
318 // |settings_.use_layer_lists| is true. This is a SPV2 setting. | 321 // |settings_.use_layer_lists| is true. This is a SPV2 setting. |
319 PropertyTrees* property_trees() { return &property_trees_; } | 322 PropertyTrees* property_trees() { return &property_trees_; } |
320 | 323 |
321 void SetNeedsDisplayOnAllLayers(); | 324 void SetNeedsDisplayOnAllLayers(); |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 | 566 |
564 float bottom_controls_height_ = 0.f; | 567 float bottom_controls_height_ = 0.f; |
565 | 568 |
566 float device_scale_factor_ = 1.f; | 569 float device_scale_factor_ = 1.f; |
567 float painted_device_scale_factor_ = 1.f; | 570 float painted_device_scale_factor_ = 1.f; |
568 float page_scale_factor_ = 1.f; | 571 float page_scale_factor_ = 1.f; |
569 float min_page_scale_factor_ = 1.f; | 572 float min_page_scale_factor_ = 1.f; |
570 float max_page_scale_factor_ = 1.f; | 573 float max_page_scale_factor_ = 1.f; |
571 gfx::ColorSpace device_color_space_; | 574 gfx::ColorSpace device_color_space_; |
572 | 575 |
| 576 uint32_t content_source_id_; |
| 577 |
573 SkColor background_color_ = SK_ColorWHITE; | 578 SkColor background_color_ = SK_ColorWHITE; |
574 bool has_transparent_background_ = false; | 579 bool has_transparent_background_ = false; |
575 | 580 |
576 LayerSelection selection_; | 581 LayerSelection selection_; |
577 | 582 |
578 gfx::Size device_viewport_size_; | 583 gfx::Size device_viewport_size_; |
579 | 584 |
580 bool have_scroll_event_handlers_ = false; | 585 bool have_scroll_event_handlers_ = false; |
581 EventListenerProperties event_listener_properties_[static_cast<size_t>( | 586 EventListenerProperties event_listener_properties_[static_cast<size_t>( |
582 EventListenerClass::kNumClasses)]; | 587 EventListenerClass::kNumClasses)]; |
(...skipping 21 matching lines...) Expand all Loading... |
604 bool in_update_property_trees_ = false; | 609 bool in_update_property_trees_ = false; |
605 | 610 |
606 MutatorHost* mutator_host_; | 611 MutatorHost* mutator_host_; |
607 | 612 |
608 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 613 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
609 }; | 614 }; |
610 | 615 |
611 } // namespace cc | 616 } // namespace cc |
612 | 617 |
613 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 618 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |