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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 265 } |
266 bool use_parent_backface_visibility() const { | 266 bool use_parent_backface_visibility() const { |
267 return use_parent_backface_visibility_; | 267 return use_parent_backface_visibility_; |
268 } | 268 } |
269 | 269 |
270 void SetSublayerTransform(const gfx::Transform& sublayer_transform); | 270 void SetSublayerTransform(const gfx::Transform& sublayer_transform); |
271 const gfx::Transform& sublayer_transform() const { | 271 const gfx::Transform& sublayer_transform() const { |
272 return sublayer_transform_; | 272 return sublayer_transform_; |
273 } | 273 } |
274 | 274 |
275 // Debug layer name. | |
276 void SetDebugName(const std::string& debug_name) { debug_name_ = debug_name; } | |
277 std::string debug_name() const { return debug_name_; } | |
278 | |
279 bool ShowDebugBorders() const; | 275 bool ShowDebugBorders() const; |
280 | 276 |
281 // These invalidate the host's render surface layer list. The caller | 277 // These invalidate the host's render surface layer list. The caller |
282 // is responsible for calling set_needs_update_draw_properties on the tree | 278 // is responsible for calling set_needs_update_draw_properties on the tree |
283 // so that its list can be recreated. | 279 // so that its list can be recreated. |
284 void CreateRenderSurface(); | 280 void CreateRenderSurface(); |
285 void ClearRenderSurface(); | 281 void ClearRenderSurface(); |
286 | 282 |
287 DrawProperties<LayerImpl>& draw_properties() { | 283 DrawProperties<LayerImpl>& draw_properties() { |
288 return draw_properties_; | 284 return draw_properties_; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 | 610 |
615 gfx::Vector2dF scroll_delta_; | 611 gfx::Vector2dF scroll_delta_; |
616 gfx::Vector2d sent_scroll_delta_; | 612 gfx::Vector2d sent_scroll_delta_; |
617 gfx::Vector2d max_scroll_offset_; | 613 gfx::Vector2d max_scroll_offset_; |
618 gfx::Vector2dF last_scroll_offset_; | 614 gfx::Vector2dF last_scroll_offset_; |
619 | 615 |
620 // The global depth value of the center of the layer. This value is used | 616 // The global depth value of the center of the layer. This value is used |
621 // to sort layers from back to front. | 617 // to sort layers from back to front. |
622 float draw_depth_; | 618 float draw_depth_; |
623 | 619 |
624 // Debug layer name. | |
625 std::string debug_name_; | |
626 | |
627 FilterOperations filters_; | 620 FilterOperations filters_; |
628 FilterOperations background_filters_; | 621 FilterOperations background_filters_; |
629 | 622 |
630 protected: | 623 protected: |
631 DrawMode current_draw_mode_; | 624 DrawMode current_draw_mode_; |
632 | 625 |
633 private: | 626 private: |
634 // Rect indicating what was repainted/updated during update. | 627 // Rect indicating what was repainted/updated during update. |
635 // Note that plugin layers bypass this and leave it empty. | 628 // Note that plugin layers bypass this and leave it empty. |
636 // Uses layer (not content) space. | 629 // Uses layer (not content) space. |
(...skipping 17 matching lines...) Expand all Loading... |
654 DrawProperties<LayerImpl> draw_properties_; | 647 DrawProperties<LayerImpl> draw_properties_; |
655 | 648 |
656 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 649 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
657 | 650 |
658 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 651 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
659 }; | 652 }; |
660 | 653 |
661 } // namespace cc | 654 } // namespace cc |
662 | 655 |
663 #endif // CC_LAYERS_LAYER_IMPL_H_ | 656 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |