| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrDefaultGeoProcFactory_DEFINED | 8 #ifndef GrDefaultGeoProcFactory_DEFINED |
| 9 #define GrDefaultGeoProcFactory_DEFINED | 9 #define GrDefaultGeoProcFactory_DEFINED |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 enum GPType { | 70 enum GPType { |
| 71 kPosition_GPType = 0x0, // we ALWAYS have position | 71 kPosition_GPType = 0x0, // we ALWAYS have position |
| 72 kColor_GPType = 0x01, | 72 kColor_GPType = 0x01, |
| 73 kLocalCoord_GPType = 0x02, | 73 kLocalCoord_GPType = 0x02, |
| 74 kCoverage_GPType= 0x04, | 74 kCoverage_GPType= 0x04, |
| 75 kLastGPType = kCoverage_GPType | 75 kLastGPType = kCoverage_GPType |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 // YOU MUST UNREF | 78 /* |
| 79 static const GrGeometryProcessor* CreateAndSetAttribs(GrDrawState*, uint32_t
GPTypeFlags); | 79 * The following functions are used to create default GPs. If you just need
to create |
| 80 static const GrGeometryProcessor* Create(); | 80 * attributes seperately from creating the default GP, use the SetAttribs fu
nction followed |
| 81 * by the Create function. Otherwise use CreateAndSetAttribs to do both at
once. |
| 82 * |
| 83 * You must unref the return from Create. |
| 84 */ |
| 85 static void SetAttribs(GrDrawState*, uint32_t GPTypeFlags = 0); |
| 86 static const GrGeometryProcessor* CreateAndSetAttribs(GrDrawState*, uint32_t
GPTypeFlags = 0); |
| 87 static const GrGeometryProcessor* Create(bool hasAttributeCoverage); |
| 81 }; | 88 }; |
| 82 | 89 |
| 83 #endif | 90 #endif |
| OLD | NEW |