| 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 "cc/trees/occlusion.h" | 9 #include "cc/trees/occlusion.h" |
| 10 #include "third_party/skia/include/core/SkXfermode.h" | 10 #include "third_party/skia/include/core/SkXfermode.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool can_use_lcd_text; | 74 bool can_use_lcd_text; |
| 75 | 75 |
| 76 // True if the layer needs to be clipped by clip_rect. | 76 // True if the layer needs to be clipped by clip_rect. |
| 77 bool is_clipped; | 77 bool is_clipped; |
| 78 | 78 |
| 79 // The layer whose coordinate space this layer draws into. This can be | 79 // The layer whose coordinate space this layer draws into. This can be |
| 80 // either the same layer (draw_properties_.render_target == this) or an | 80 // either the same layer (draw_properties_.render_target == this) or an |
| 81 // ancestor of this layer. | 81 // ancestor of this layer. |
| 82 LayerType* render_target; | 82 LayerType* render_target; |
| 83 | 83 |
| 84 // This rect is in the layer's content space. | 84 // This rect is a bounding box around what part of the layer is visible, in |
| 85 gfx::Rect visible_content_rect; | 85 // the layer's coordinate space. |
| 86 gfx::Rect visible_layer_rect; |
| 86 | 87 |
| 87 // In target surface space, the rect that encloses the clipped, drawable | 88 // In target surface space, the rect that encloses the clipped, drawable |
| 88 // content of the layer. | 89 // content of the layer. |
| 89 gfx::Rect drawable_content_rect; | 90 gfx::Rect drawable_content_rect; |
| 90 | 91 |
| 91 // In target surface space, the original rect that clipped this layer. This | 92 // In target surface space, the original rect that clipped this layer. This |
| 92 // value is used to avoid unnecessarily changing GL scissor state. | 93 // value is used to avoid unnecessarily changing GL scissor state. |
| 93 gfx::Rect clip_rect; | 94 gfx::Rect clip_rect; |
| 94 | 95 |
| 95 // Number of descendants with a clip parent that is our ancestor. NB - this | 96 // Number of descendants with a clip parent that is our ancestor. NB - this |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // have page scale applied and others not, this may differ between layers. | 143 // have page scale applied and others not, this may differ between layers. |
| 143 float page_scale_factor; | 144 float page_scale_factor; |
| 144 | 145 |
| 145 // The device scale factor that is applied to the layer. | 146 // The device scale factor that is applied to the layer. |
| 146 float device_scale_factor; | 147 float device_scale_factor; |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace cc | 150 } // namespace cc |
| 150 | 151 |
| 151 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ | 152 #endif // CC_LAYERS_DRAW_PROPERTIES_H_ |
| OLD | NEW |