| 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 #include <vector> | 10 #include <vector> |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 // Properties synchronized from the associated Layer. | 660 // Properties synchronized from the associated Layer. |
| 661 gfx::Point3F transform_origin_; | 661 gfx::Point3F transform_origin_; |
| 662 gfx::Size bounds_; | 662 gfx::Size bounds_; |
| 663 ScrollOffsetDelegate* scroll_offset_delegate_; | 663 ScrollOffsetDelegate* scroll_offset_delegate_; |
| 664 LayerImpl* scroll_clip_layer_; | 664 LayerImpl* scroll_clip_layer_; |
| 665 bool scrollable_ : 1; | 665 bool scrollable_ : 1; |
| 666 bool should_scroll_on_main_thread_ : 1; | 666 bool should_scroll_on_main_thread_ : 1; |
| 667 bool have_wheel_event_handlers_ : 1; | 667 bool have_wheel_event_handlers_ : 1; |
| 668 bool have_scroll_event_handlers_ : 1; | 668 bool have_scroll_event_handlers_ : 1; |
| 669 | 669 |
| 670 static_assert(SCROLL_BLOCKS_ON_MAX < (1 << 3), "ScrollBlocksOn too big"); | 670 static_assert(ScrollBlocksOnMax < (1 << 3), "ScrollBlocksOn too big"); |
| 671 ScrollBlocksOn scroll_blocks_on_ : 3; | 671 ScrollBlocksOn scroll_blocks_on_ : 3; |
| 672 | 672 |
| 673 bool user_scrollable_horizontal_ : 1; | 673 bool user_scrollable_horizontal_ : 1; |
| 674 bool user_scrollable_vertical_ : 1; | 674 bool user_scrollable_vertical_ : 1; |
| 675 bool stacking_order_changed_ : 1; | 675 bool stacking_order_changed_ : 1; |
| 676 // Whether the "back" of this layer should draw. | 676 // Whether the "back" of this layer should draw. |
| 677 bool double_sided_ : 1; | 677 bool double_sided_ : 1; |
| 678 bool should_flatten_transform_ : 1; | 678 bool should_flatten_transform_ : 1; |
| 679 | 679 |
| 680 // Tracks if drawing-related properties have changed since last redraw. | 680 // Tracks if drawing-related properties have changed since last redraw. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 | 762 |
| 763 std::vector<FrameTimingRequest> frame_timing_requests_; | 763 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 764 bool frame_timing_requests_dirty_; | 764 bool frame_timing_requests_dirty_; |
| 765 | 765 |
| 766 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 766 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 767 }; | 767 }; |
| 768 | 768 |
| 769 } // namespace cc | 769 } // namespace cc |
| 770 | 770 |
| 771 #endif // CC_LAYERS_LAYER_IMPL_H_ | 771 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |