OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_DRAW_PROPERTIES_H_ | 5 #ifndef CC_LAYERS_DRAW_PROPERTIES_H_ |
6 #define CC_LAYERS_DRAW_PROPERTIES_H_ | 6 #define CC_LAYERS_DRAW_PROPERTIES_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 24 matching lines...) Expand all Loading... |
35 // particularly in the case when a RenderSurface re-parents the layer's | 35 // particularly in the case when a RenderSurface re-parents the layer's |
36 // opacity, or when opacity is compounded by the hierarchy. | 36 // opacity, or when opacity is compounded by the hierarchy. |
37 float opacity; | 37 float opacity; |
38 | 38 |
39 // xxx_is_animating flags are used to indicate whether the DrawProperties | 39 // xxx_is_animating flags are used to indicate whether the DrawProperties |
40 // are actually meaningful on the main thread. When the properties are | 40 // are actually meaningful on the main thread. When the properties are |
41 // animating, the main thread may not have the same values that are used | 41 // animating, the main thread may not have the same values that are used |
42 // to draw. | 42 // to draw. |
43 bool screen_space_transform_is_animating; | 43 bool screen_space_transform_is_animating; |
44 | 44 |
45 // True if the layer can use LCD text. | |
46 bool can_use_lcd_text; | |
47 | |
48 // True if the layer needs to be clipped by clip_rect. | 45 // True if the layer needs to be clipped by clip_rect. |
49 bool is_clipped; | 46 bool is_clipped; |
50 | 47 |
51 // This rect is a bounding box around what part of the layer is visible, in | 48 // This rect is a bounding box around what part of the layer is visible, in |
52 // the layer's coordinate space. | 49 // the layer's coordinate space. |
53 gfx::Rect visible_layer_rect; | 50 gfx::Rect visible_layer_rect; |
54 | 51 |
55 // In target surface space, the rect that encloses the clipped, drawable | 52 // In target surface space, the rect that encloses the clipped, drawable |
56 // content of the layer. | 53 // content of the layer. |
57 gfx::Rect drawable_content_rect; | 54 gfx::Rect drawable_content_rect; |
58 | 55 |
59 // In target surface space, the original rect that clipped this layer. This | 56 // In target surface space, the original rect that clipped this layer. This |
60 // value is used to avoid unnecessarily changing GL scissor state. | 57 // value is used to avoid unnecessarily changing GL scissor state. |
61 gfx::Rect clip_rect; | 58 gfx::Rect clip_rect; |
62 | 59 |
63 // The maximum scale during the layers current animation at which content | 60 // The maximum scale during the layers current animation at which content |
64 // should be rastered at to be crisp. | 61 // should be rastered at to be crisp. |
65 float maximum_animation_contents_scale; | 62 float maximum_animation_contents_scale; |
66 | 63 |
67 // The scale during the layer animation start at which content should be | 64 // The scale during the layer animation start at which content should be |
68 // rastered at to be crisp. | 65 // rastered at to be crisp. |
69 float starting_animation_contents_scale; | 66 float starting_animation_contents_scale; |
70 }; | 67 }; |
71 | 68 |
72 } // namespace cc | 69 } // namespace cc |
73 | 70 |
74 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 71 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
OLD | NEW |