| 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 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 : fVertexStride(0) | 55 : fVertexStride(0) |
| 56 , fColor(color) | 56 , fColor(color) |
| 57 , fCoverage(coverage) | 57 , fCoverage(coverage) |
| 58 , fWillUseGeoShader(false) | 58 , fWillUseGeoShader(false) |
| 59 , fHasVertexColor(false) | 59 , fHasVertexColor(false) |
| 60 , fHasVertexCoverage(false) | 60 , fHasVertexCoverage(false) |
| 61 , fHasLocalCoords(false) {} | 61 , fHasLocalCoords(false) {} |
| 62 | 62 |
| 63 virtual const char* name() const = 0; | 63 virtual const char* name() const = 0; |
| 64 | 64 |
| 65 /** Implemented using GLProcessor::GenKey as described in this class's comme
nt. */ | 65 /** |
| 66 * Sets a unique key on the GrProcessorKeyBuilder that is directly associate
d with this geometry |
| 67 * processor's GL backend implementation. |
| 68 */ |
| 66 virtual void getGLProcessorKey(const GrBatchTracker& bt, | 69 virtual void getGLProcessorKey(const GrBatchTracker& bt, |
| 67 const GrGLCaps& caps, | 70 const GrGLCaps& caps, |
| 68 GrProcessorKeyBuilder* b) const = 0; | 71 GrProcessorKeyBuilder* b) const = 0; |
| 69 | 72 |
| 70 | 73 |
| 71 /** Returns a new instance of the appropriate *GL* implementation class | 74 /** Returns a new instance of the appropriate *GL* implementation class |
| 72 for the given GrProcessor; caller is responsible for deleting | 75 for the given GrProcessor; caller is responsible for deleting |
| 73 the object. */ | 76 the object. */ |
| 74 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co
nst = 0; | 77 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co
nst = 0; |
| 75 | 78 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 GrColor fColor; | 171 GrColor fColor; |
| 169 uint8_t fCoverage; | 172 uint8_t fCoverage; |
| 170 bool fWillUseGeoShader; | 173 bool fWillUseGeoShader; |
| 171 bool fHasVertexColor; | 174 bool fHasVertexColor; |
| 172 bool fHasVertexCoverage; | 175 bool fHasVertexCoverage; |
| 173 bool fHasLocalCoords; | 176 bool fHasLocalCoords; |
| 174 | 177 |
| 175 typedef GrProcessor INHERITED; | 178 typedef GrProcessor INHERITED; |
| 176 }; | 179 }; |
| 177 #endif | 180 #endif |
| OLD | NEW |