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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // the layer's coordinate space. | 49 // the layer's coordinate space. |
50 gfx::Rect visible_layer_rect; | 50 gfx::Rect visible_layer_rect; |
51 | 51 |
52 // In target surface space, the rect that encloses the clipped, drawable | 52 // In target surface space, the rect that encloses the clipped, drawable |
53 // content of the layer. | 53 // content of the layer. |
54 gfx::Rect drawable_content_rect; | 54 gfx::Rect drawable_content_rect; |
55 | 55 |
56 // 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 |
57 // value is used to avoid unnecessarily changing GL scissor state. | 57 // value is used to avoid unnecessarily changing GL scissor state. |
58 gfx::Rect clip_rect; | 58 gfx::Rect clip_rect; |
59 | |
60 // The maximum scale during the layers current animation at which content | |
61 // should be rastered at to be crisp. | |
62 float maximum_animation_contents_scale; | |
63 | |
64 // The scale during the layer animation start at which content should be | |
65 // rastered at to be crisp. | |
66 float starting_animation_contents_scale; | |
67 }; | 59 }; |
68 | 60 |
69 } // namespace cc | 61 } // namespace cc |
70 | 62 |
71 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 63 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
OLD | NEW |