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_QUAD_H_ | 5 #ifndef CC_DRAW_QUAD_H_ |
6 #define CC_DRAW_QUAD_H_ | 6 #define CC_DRAW_QUAD_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/resource_provider.h" | 10 #include "cc/resource_provider.h" |
11 #include "cc/shared_quad_state.h" | 11 #include "cc/shared_quad_state.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 // DrawQuad is a bag of data used for drawing a quad. Because different | 15 // DrawQuad is a bag of data used for drawing a quad. Because different |
16 // materials need different bits of per-quad data to render, classes that derive | 16 // materials need different bits of per-quad data to render, classes that derive |
17 // from DrawQuad store additional data in their derived instance. The Material | 17 // from DrawQuad store additional data in their derived instance. The Material |
18 // enum is used to "safely" downcast to the derived class. | 18 // enum is used to "safely" downcast to the derived class. |
19 class CC_EXPORT DrawQuad { | 19 class CC_EXPORT DrawQuad { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 Material material, | 110 Material material, |
111 gfx::Rect rect, | 111 gfx::Rect rect, |
112 gfx::Rect opaque_rect, | 112 gfx::Rect opaque_rect, |
113 gfx::Rect visible_rect, | 113 gfx::Rect visible_rect, |
114 bool needs_blending); | 114 bool needs_blending); |
115 }; | 115 }; |
116 | 116 |
117 } | 117 } |
118 | 118 |
119 #endif // CC_DRAW_QUAD_H_ | 119 #endif // CC_DRAW_QUAD_H_ |
OLD | NEW |