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_DRAW_PROPERTIES_H_ | 5 #ifndef CC_LAYERS_DRAW_PROPERTIES_H_ |
6 #define CC_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" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 // Container for properties that layers need to compute before they can be | 14 // Container for properties that layers need to compute before they can be |
15 // drawn. | 15 // drawn. |
16 template<typename LayerType, typename RenderSurfaceType> | 16 template<typename LayerType, typename RenderSurfaceType> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Does not include this layer itself, only its children and descendants. | 89 // Does not include this layer itself, only its children and descendants. |
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_DRAW_PROPERTIES_H_ | 99 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
OLD | NEW |