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 11 matching lines...) Expand all Loading... |
22 GrGeometryProcessor() | 22 GrGeometryProcessor() |
23 : INHERITED(false) | 23 : INHERITED(false) |
24 , fWillUseGeoShader(false) | 24 , fWillUseGeoShader(false) |
25 , fLocalCoordsType(kUnused_LocalCoordsType) {} | 25 , fLocalCoordsType(kUnused_LocalCoordsType) {} |
26 | 26 |
27 bool willUseGeoShader() const override { return fWillUseGeoShader; } | 27 bool willUseGeoShader() const override { return fWillUseGeoShader; } |
28 | 28 |
29 // TODO delete when paths are in batch | 29 // TODO delete when paths are in batch |
30 void initBatchTracker(GrBatchTracker*, const GrPipelineOptimizations&) const
override {} | 30 void initBatchTracker(GrBatchTracker*, const GrPipelineOptimizations&) const
override {} |
31 | 31 |
32 // TODO delete this when paths are in batch | |
33 bool canMakeEqual(const GrBatchTracker& mine, | |
34 const GrPrimitiveProcessor& that, | |
35 const GrBatchTracker& theirs) const override { | |
36 SkFAIL("Unsupported\n"); | |
37 return false; | |
38 } | |
39 | |
40 // TODO Delete when paths are in batch | 32 // TODO Delete when paths are in batch |
41 void getInvariantOutputColor(GrInitInvariantOutput* out) const override { | 33 void getInvariantOutputColor(GrInitInvariantOutput* out) const override { |
42 SkFAIL("Unsupported\n"); | 34 SkFAIL("Unsupported\n"); |
43 } | 35 } |
44 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override { | 36 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override { |
45 SkFAIL("Unsupported\n"); | 37 SkFAIL("Unsupported\n"); |
46 } | 38 } |
47 | 39 |
48 bool hasTransformedLocalCoords() const override { | 40 bool hasTransformedLocalCoords() const override { |
49 return kHasTransformed_LocalCoordsType == fLocalCoordsType; | 41 return kHasTransformed_LocalCoordsType == fLocalCoordsType; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 88 } |
97 | 89 |
98 private: | 90 private: |
99 bool fWillUseGeoShader; | 91 bool fWillUseGeoShader; |
100 LocalCoordsType fLocalCoordsType; | 92 LocalCoordsType fLocalCoordsType; |
101 | 93 |
102 typedef GrPrimitiveProcessor INHERITED; | 94 typedef GrPrimitiveProcessor INHERITED; |
103 }; | 95 }; |
104 | 96 |
105 #endif | 97 #endif |
OLD | NEW |