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