| 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_QUADS_DRAW_QUAD_H_ | 5 #ifndef CC_QUADS_DRAW_QUAD_H_ |
| 6 #define CC_QUADS_DRAW_QUAD_H_ | 6 #define CC_QUADS_DRAW_QUAD_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/quads/shared_quad_state.h" | 10 #include "cc/quads/shared_quad_state.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 gfx::Rect rect; | 69 gfx::Rect rect; |
| 70 | 70 |
| 71 // This specifies the region of the quad that is opaque. This rect lives in | 71 // This specifies the region of the quad that is opaque. This rect lives in |
| 72 // content space. | 72 // content space. |
| 73 gfx::Rect opaque_rect; | 73 gfx::Rect opaque_rect; |
| 74 | 74 |
| 75 // Allows changing the rect that gets drawn to make it smaller. This value | 75 // Allows changing the rect that gets drawn to make it smaller. This value |
| 76 // should be clipped to |rect|. This rect lives in content space. | 76 // should be clipped to |rect|. This rect lives in content space. |
| 77 gfx::Rect visible_rect; | 77 gfx::Rect visible_rect; |
| 78 | 78 |
| 79 // If true, this quad has individual damage and the damage rect is not stored |
| 80 // in RenderPass::damage_rect. |
| 81 bool damaged; |
| 82 |
| 79 // By default blending is used when some part of the quad is not opaque. | 83 // By default blending is used when some part of the quad is not opaque. |
| 80 // With this setting, it is possible to force blending on regardless of the | 84 // With this setting, it is possible to force blending on regardless of the |
| 81 // opaque area. | 85 // opaque area. |
| 82 bool needs_blending; | 86 bool needs_blending; |
| 83 | 87 |
| 84 // Stores state common to a large bundle of quads; kept separate for memory | 88 // Stores state common to a large bundle of quads; kept separate for memory |
| 85 // efficiency. There is special treatment to reconstruct these pointers | 89 // efficiency. There is special treatment to reconstruct these pointers |
| 86 // during serialization. | 90 // during serialization. |
| 87 const SharedQuadState* shared_quad_state; | 91 const SharedQuadState* shared_quad_state; |
| 88 | 92 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 const gfx::Rect& rect, | 140 const gfx::Rect& rect, |
| 137 const gfx::Rect& opaque_rect, | 141 const gfx::Rect& opaque_rect, |
| 138 const gfx::Rect& visible_rect, | 142 const gfx::Rect& visible_rect, |
| 139 bool needs_blending); | 143 bool needs_blending); |
| 140 virtual void ExtendValue(base::trace_event::TracedValue* value) const = 0; | 144 virtual void ExtendValue(base::trace_event::TracedValue* value) const = 0; |
| 141 }; | 145 }; |
| 142 | 146 |
| 143 } // namespace cc | 147 } // namespace cc |
| 144 | 148 |
| 145 #endif // CC_QUADS_DRAW_QUAD_H_ | 149 #endif // CC_QUADS_DRAW_QUAD_H_ |
| OLD | NEW |