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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 return IsLeftEdge() || IsTopEdge() || IsRightEdge() || IsBottomEdge(); | 124 return IsLeftEdge() || IsTopEdge() || IsRightEdge() || IsBottomEdge(); |
125 } | 125 } |
126 | 126 |
127 scoped_ptr<base::Value> AsValue() const; | 127 scoped_ptr<base::Value> AsValue() const; |
128 | 128 |
129 protected: | 129 protected: |
130 DrawQuad(); | 130 DrawQuad(); |
131 | 131 |
132 void SetAll(const SharedQuadState* shared_quad_state, | 132 void SetAll(const SharedQuadState* shared_quad_state, |
133 Material material, | 133 Material material, |
134 gfx::Rect rect, | 134 const gfx::Rect& rect, |
135 gfx::Rect opaque_rect, | 135 const gfx::Rect& opaque_rect, |
136 gfx::Rect visible_rect, | 136 const gfx::Rect& visible_rect, |
137 bool needs_blending); | 137 bool needs_blending); |
138 virtual void ExtendValue(base::DictionaryValue* value) const = 0; | 138 virtual void ExtendValue(base::DictionaryValue* value) const = 0; |
139 }; | 139 }; |
140 | 140 |
141 } // namespace cc | 141 } // namespace cc |
142 | 142 |
143 #endif // CC_QUADS_DRAW_QUAD_H_ | 143 #endif // CC_QUADS_DRAW_QUAD_H_ |
OLD | NEW |