OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrGeometryProcessor_DEFINED | 8 #ifndef GrGeometryProcessor_DEFINED |
9 #define GrGeometryProcessor_DEFINED | 9 #define GrGeometryProcessor_DEFINED |
10 | 10 |
| 11 #include "GrGeometryData.h" |
11 #include "GrProcessor.h" | 12 #include "GrProcessor.h" |
12 #include "GrShaderVar.h" | 13 #include "GrShaderVar.h" |
13 | 14 |
14 /** | 15 /** |
15 * A GrGeomteryProcessor is used to perform computation in the vertex shader and | 16 * A GrGeomteryProcessor is used to perform computation in the vertex shader and |
16 * add support for custom vertex attributes. A GrGemeotryProcessor is typically | 17 * add support for custom vertex attributes. A GrGemeotryProcessor is typically |
17 * tied to the code that does a specific type of high-level primitive rendering | 18 * tied to the code that does a specific type of high-level primitive rendering |
18 * (e.g. anti-aliased circle rendering). The GrGeometryProcessor used for a draw
is | 19 * (e.g. anti-aliased circle rendering). The GrGeometryProcessor used for a draw
is |
19 * specified using GrDrawState. There can only be one geometry processor active
for | 20 * specified using GrDrawState. There can only be one geometry processor active
for |
20 * a draw. The custom vertex attributes required by the geometry processor must
be | 21 * a draw. The custom vertex attributes required by the geometry processor must
be |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 private: | 70 private: |
70 virtual bool onIsEqual(const GrGeometryProcessor&) const = 0; | 71 virtual bool onIsEqual(const GrGeometryProcessor&) const = 0; |
71 | 72 |
72 SkSTArray<kMaxVertexAttribs, GrShaderVar, true> fVertexAttribs; | 73 SkSTArray<kMaxVertexAttribs, GrShaderVar, true> fVertexAttribs; |
73 bool fWillUseGeoShader; | 74 bool fWillUseGeoShader; |
74 | 75 |
75 typedef GrProcessor INHERITED; | 76 typedef GrProcessor INHERITED; |
76 }; | 77 }; |
77 | 78 |
78 #endif | 79 #endif |
OLD | NEW |