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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
433 const gfx::PointF& screen_space_point, | 433 const gfx::PointF& screen_space_point, |
434 InputHandler::ScrollInputType type) const; | 434 InputHandler::ScrollInputType type) const; |
435 | 435 |
436 void SetDoubleSided(bool double_sided); | 436 void SetDoubleSided(bool double_sided); |
437 bool double_sided() const { return double_sided_; } | 437 bool double_sided() const { return double_sided_; } |
438 | 438 |
439 void SetTransform(const gfx::Transform& transform); | 439 void SetTransform(const gfx::Transform& transform); |
440 const gfx::Transform& transform() const { return transform_; } | 440 const gfx::Transform& transform() const { return transform_; } |
441 bool TransformIsAnimating() const; | 441 bool TransformIsAnimating() const; |
442 bool TransformIsAnimatingOnImplOnly() const; | 442 bool TransformIsAnimatingOnImplOnly() const; |
443 void SetTransformAndInvertibility(const gfx::Transform& transform, | |
444 bool transform_is_invertible); | |
445 bool transform_is_invertible() const { return transform_is_invertible_; } | |
443 | 446 |
444 // Note this rect is in layer space (not content space). | 447 // Note this rect is in layer space (not content space). |
445 void SetUpdateRect(const gfx::RectF& update_rect); | 448 void SetUpdateRect(const gfx::RectF& update_rect); |
446 | 449 |
447 const gfx::RectF& update_rect() const { return update_rect_; } | 450 const gfx::RectF& update_rect() const { return update_rect_; } |
448 | 451 |
449 virtual base::DictionaryValue* LayerTreeAsJson() const; | 452 virtual base::DictionaryValue* LayerTreeAsJson() const; |
450 | 453 |
451 void SetStackingOrderChanged(bool stacking_order_changed); | 454 void SetStackingOrderChanged(bool stacking_order_changed); |
452 | 455 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
591 | 594 |
592 bool masks_to_bounds_ : 1; | 595 bool masks_to_bounds_ : 1; |
593 bool contents_opaque_ : 1; | 596 bool contents_opaque_ : 1; |
594 bool is_root_for_isolated_group_ : 1; | 597 bool is_root_for_isolated_group_ : 1; |
595 bool use_parent_backface_visibility_ : 1; | 598 bool use_parent_backface_visibility_ : 1; |
596 bool draw_checkerboard_for_missing_tiles_ : 1; | 599 bool draw_checkerboard_for_missing_tiles_ : 1; |
597 bool draws_content_ : 1; | 600 bool draws_content_ : 1; |
598 bool hide_layer_and_subtree_ : 1; | 601 bool hide_layer_and_subtree_ : 1; |
599 bool force_render_surface_ : 1; | 602 bool force_render_surface_ : 1; |
600 | 603 |
604 // Prevent calculating transform_'s invertibility too frequently. | |
ajuma
2014/03/28 18:49:07
"Cache transform_'s invertibility to avoid needing
avallee
2014/04/15 18:53:25
Done.
| |
605 bool transform_is_invertible_ : 1; | |
606 | |
601 // Set for the layer that other layers are fixed to. | 607 // Set for the layer that other layers are fixed to. |
602 bool is_container_for_fixed_position_layers_ : 1; | 608 bool is_container_for_fixed_position_layers_ : 1; |
603 bool is_3d_sorted_ : 1; | 609 bool is_3d_sorted_ : 1; |
604 Region non_fast_scrollable_region_; | 610 Region non_fast_scrollable_region_; |
605 Region touch_event_handler_region_; | 611 Region touch_event_handler_region_; |
606 SkColor background_color_; | 612 SkColor background_color_; |
607 | 613 |
608 float opacity_; | 614 float opacity_; |
609 SkXfermode::Mode blend_mode_; | 615 SkXfermode::Mode blend_mode_; |
610 gfx::PointF position_; | 616 gfx::PointF position_; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
658 DrawProperties<LayerImpl> draw_properties_; | 664 DrawProperties<LayerImpl> draw_properties_; |
659 | 665 |
660 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 666 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
661 | 667 |
662 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 668 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
663 }; | 669 }; |
664 | 670 |
665 } // namespace cc | 671 } // namespace cc |
666 | 672 |
667 #endif // CC_LAYERS_LAYER_IMPL_H_ | 673 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |