| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 GrColor color() const { return fColor; } | 28 GrColor color() const { return fColor; } |
| 29 const SkMatrix& viewMatrix() const { return fViewMatrix; } | 29 const SkMatrix& viewMatrix() const { return fViewMatrix; } |
| 30 const SkMatrix& localMatrix() const { return fLocalMatrix; } | 30 const SkMatrix& localMatrix() const { return fLocalMatrix; } |
| 31 | 31 |
| 32 bool willUseGeoShader() const override { return false; } | 32 bool willUseGeoShader() const override { return false; } |
| 33 | 33 |
| 34 virtual void getGLProcessorKey(const GrGLSLCaps& caps, | 34 virtual void getGLProcessorKey(const GrGLSLCaps& caps, |
| 35 GrProcessorKeyBuilder* b) const override; | 35 GrProcessorKeyBuilder* b) const override; |
| 36 | 36 |
| 37 virtual GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps& caps) con
st override; | 37 virtual GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps& caps) c
onst override; |
| 38 | 38 |
| 39 bool hasTransformedLocalCoords() const override { return false; } | 39 bool hasTransformedLocalCoords() const override { return false; } |
| 40 | 40 |
| 41 const GrPipelineOptimizations& opts() const { return fOpts; } | 41 const GrPipelineOptimizations& opts() const { return fOpts; } |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 GrPathProcessor(GrColor color, const GrPipelineOptimizations& opts, | 44 GrPathProcessor(GrColor color, const GrPipelineOptimizations& opts, |
| 45 const SkMatrix& viewMatrix, const SkMatrix& localMatrix); | 45 const SkMatrix& viewMatrix, const SkMatrix& localMatrix); |
| 46 | 46 |
| 47 bool hasExplicitLocalCoords() const override { return false; } | 47 bool hasExplicitLocalCoords() const override { return false; } |
| 48 | 48 |
| 49 GrColor fColor; | 49 GrColor fColor; |
| 50 const SkMatrix fViewMatrix; | 50 const SkMatrix fViewMatrix; |
| 51 const SkMatrix fLocalMatrix; | 51 const SkMatrix fLocalMatrix; |
| 52 GrPipelineOptimizations fOpts; | 52 GrPipelineOptimizations fOpts; |
| 53 | 53 |
| 54 typedef GrPrimitiveProcessor INHERITED; | 54 typedef GrPrimitiveProcessor INHERITED; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif | 57 #endif |
| OLD | NEW |