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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 bool HasPendingPageScaleAnimation() const; | 298 bool HasPendingPageScaleAnimation() const; |
299 | 299 |
300 void SetDeviceScaleFactor(float device_scale_factor); | 300 void SetDeviceScaleFactor(float device_scale_factor); |
301 float device_scale_factor() const { return device_scale_factor_; } | 301 float device_scale_factor() const { return device_scale_factor_; } |
302 | 302 |
303 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); | 303 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
304 float painted_device_scale_factor() const { | 304 float painted_device_scale_factor() const { |
305 return painted_device_scale_factor_; | 305 return painted_device_scale_factor_; |
306 } | 306 } |
307 | 307 |
| 308 void SetContentSourceId(uint32_t); |
| 309 uint32_t content_source_id() const { return content_source_id_; } |
| 310 |
308 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); | 311 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); |
309 const gfx::ColorSpace& device_color_space() const { | 312 const gfx::ColorSpace& device_color_space() const { |
310 return device_color_space_; | 313 return device_color_space_; |
311 } | 314 } |
312 | 315 |
313 // Used externally by blink for setting the PropertyTrees when | 316 // Used externally by blink for setting the PropertyTrees when |
314 // |settings_.use_layer_lists| is true. This is a SPV2 setting. | 317 // |settings_.use_layer_lists| is true. This is a SPV2 setting. |
315 PropertyTrees* property_trees() { return &property_trees_; } | 318 PropertyTrees* property_trees() { return &property_trees_; } |
316 | 319 |
317 void SetNeedsDisplayOnAllLayers(); | 320 void SetNeedsDisplayOnAllLayers(); |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 559 |
557 float bottom_controls_height_ = 0.f; | 560 float bottom_controls_height_ = 0.f; |
558 | 561 |
559 float device_scale_factor_ = 1.f; | 562 float device_scale_factor_ = 1.f; |
560 float painted_device_scale_factor_ = 1.f; | 563 float painted_device_scale_factor_ = 1.f; |
561 float page_scale_factor_ = 1.f; | 564 float page_scale_factor_ = 1.f; |
562 float min_page_scale_factor_ = 1.f; | 565 float min_page_scale_factor_ = 1.f; |
563 float max_page_scale_factor_ = 1.f; | 566 float max_page_scale_factor_ = 1.f; |
564 gfx::ColorSpace device_color_space_; | 567 gfx::ColorSpace device_color_space_; |
565 | 568 |
| 569 uint32_t content_source_id_; |
| 570 |
566 SkColor background_color_ = SK_ColorWHITE; | 571 SkColor background_color_ = SK_ColorWHITE; |
567 bool has_transparent_background_ = false; | 572 bool has_transparent_background_ = false; |
568 | 573 |
569 LayerSelection selection_; | 574 LayerSelection selection_; |
570 | 575 |
571 gfx::Size device_viewport_size_; | 576 gfx::Size device_viewport_size_; |
572 | 577 |
573 bool have_scroll_event_handlers_ = false; | 578 bool have_scroll_event_handlers_ = false; |
574 EventListenerProperties event_listener_properties_[static_cast<size_t>( | 579 EventListenerProperties event_listener_properties_[static_cast<size_t>( |
575 EventListenerClass::kNumClasses)]; | 580 EventListenerClass::kNumClasses)]; |
(...skipping 22 matching lines...) Expand all Loading... |
598 MutatorHost* mutator_host_; | 603 MutatorHost* mutator_host_; |
599 | 604 |
600 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; | 605 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; |
601 | 606 |
602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 607 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
603 }; | 608 }; |
604 | 609 |
605 } // namespace cc | 610 } // namespace cc |
606 | 611 |
607 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 612 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |