| 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 GrPathProcessor_DEFINED | 8 #ifndef GrPathProcessor_DEFINED |
| 9 #define GrPathProcessor_DEFINED | 9 #define GrPathProcessor_DEFINED |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const char* name() const override { return "PathProcessor"; } | 38 const char* name() const override { return "PathProcessor"; } |
| 39 | 39 |
| 40 GrColor color() const { return fColor; } | 40 GrColor color() const { return fColor; } |
| 41 | 41 |
| 42 void getInvariantOutputColor(GrInitInvariantOutput* out) const override; | 42 void getInvariantOutputColor(GrInitInvariantOutput* out) const override; |
| 43 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override; | 43 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override; |
| 44 | 44 |
| 45 bool willUseGeoShader() const override { return false; } | 45 bool willUseGeoShader() const override { return false; } |
| 46 | 46 |
| 47 virtual void getGLProcessorKey(const GrBatchTracker& bt, | 47 virtual void getGLProcessorKey(const GrBatchTracker& bt, |
| 48 const GrGLCaps& caps, | 48 const GrGLSLCaps& caps, |
| 49 GrProcessorKeyBuilder* b) const override; | 49 GrProcessorKeyBuilder* b) const override; |
| 50 | 50 |
| 51 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, | 51 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, |
| 52 const GrGLCaps& caps) const
override; | 52 const GrGLSLCaps& caps) con
st override; |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 GrPathProcessor(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& l
ocalMatrix); | 55 GrPathProcessor(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& l
ocalMatrix); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 bool hasExplicitLocalCoords() const override { return false; } | 58 bool hasExplicitLocalCoords() const override { return false; } |
| 59 | 59 |
| 60 GrColor fColor; | 60 GrColor fColor; |
| 61 | 61 |
| 62 typedef GrPrimitiveProcessor INHERITED; | 62 typedef GrPrimitiveProcessor INHERITED; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 #endif | 65 #endif |
| OLD | NEW |