| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 10 #include "ui/gfx/transform.h" | 10 #include "ui/gfx/transform.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 // Transforms objects from content space to target surface space, where | 34 // Transforms objects from content space to target surface space, where |
| 35 // this layer would be drawn. | 35 // this layer would be drawn. |
| 36 gfx::Transform target_space_transform; | 36 gfx::Transform target_space_transform; |
| 37 | 37 |
| 38 // Transforms objects from content space to screen space (viewport space). | 38 // Transforms objects from content space to screen space (viewport space). |
| 39 gfx::Transform screen_space_transform; | 39 gfx::Transform screen_space_transform; |
| 40 | 40 |
| 41 // DrawProperties::opacity may be different than LayerType::opacity, | 41 // DrawProperties::opacity may be different than LayerType::opacity, |
| 42 // particularly in the case when a renderSurface re-parents the layer's | 42 // particularly in the case when a RenderSurface re-parents the layer's |
| 43 // opacity, or when opacity is compounded by the hierarchy. | 43 // opacity, or when opacity is compounded by the hierarchy. |
| 44 float opacity; | 44 float opacity; |
| 45 | 45 |
| 46 // XXXIsAnimating flags are used to indicate whether the drawProperties | 46 // xxx_is_animating flags are used to indicate whether the DrawProperties |
| 47 // are actually meaningful on the main thread. When the properties are | 47 // are actually meaningful on the main thread. When the properties are |
| 48 // animating, the main thread may not have the same values that are used | 48 // animating, the main thread may not have the same values that are used |
| 49 // to draw. | 49 // to draw. |
| 50 bool opacity_is_animating; | 50 bool opacity_is_animating; |
| 51 bool screen_space_opacity_is_animating; | 51 bool screen_space_opacity_is_animating; |
| 52 bool target_space_transform_is_animating; | 52 bool target_space_transform_is_animating; |
| 53 bool screen_space_transform_is_animating; | 53 bool screen_space_transform_is_animating; |
| 54 | 54 |
| 55 // True if the layer can use LCD text. | 55 // True if the layer can use LCD text. |
| 56 bool can_use_lcd_text; | 56 bool can_use_lcd_text; |
| 57 | 57 |
| 58 // True if the layer needs to be clipped by clipRect. | 58 // True if the layer needs to be clipped by |clip_rect|. |
| 59 bool is_clipped; | 59 bool is_clipped; |
| 60 | 60 |
| 61 // The layer whose coordinate space this layer draws into. This can be | 61 // The layer whose coordinate space this layer draws into. This can be |
| 62 // either the same layer (m_drawProperties.render_target == this) or an | 62 // either the same layer (m_drawProperties.render_target == this) or an |
| 63 // ancestor of this layer. | 63 // ancestor of this layer. |
| 64 LayerType* render_target; | 64 LayerType* render_target; |
| 65 | 65 |
| 66 // The surface that this layer and its subtree would contribute to. | 66 // The surface that this layer and its subtree would contribute to. |
| 67 scoped_ptr<RenderSurfaceType> render_surface; | 67 scoped_ptr<RenderSurfaceType> render_surface; |
| 68 | 68 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 90 int num_descendants_that_draw_content; | 90 int num_descendants_that_draw_content; |
| 91 | 91 |
| 92 // If true, every descendant in the sub-tree can clip itself without the | 92 // If true, every descendant in the sub-tree can clip itself without the |
| 93 // need to use hardware sissoring or a new render target. | 93 // need to use hardware sissoring or a new render target. |
| 94 bool descendants_can_clip_selves; | 94 bool descendants_can_clip_selves; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace cc | 97 } // namespace cc |
| 98 | 98 |
| 99 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 99 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
| OLD | NEW |