| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 virtual void getGLSLProcessorKey(const GrGLSLCaps& caps, | 34 virtual void getGLSLProcessorKey(const GrGLSLCaps& caps, |
| 35 GrProcessorKeyBuilder* b) const override; | 35 GrProcessorKeyBuilder* b) const override; |
| 36 | 36 |
| 37 virtual GrGLSLPrimitiveProcessor* createGLSLInstance(const GrGLSLCaps& caps)
const override; | 37 virtual GrGLSLPrimitiveProcessor* createGLSLInstance(const GrGLSLCaps& caps)
const override; |
| 38 | 38 |
| 39 bool hasTransformedLocalCoords() const override { return false; } | 39 bool hasTransformedLocalCoords() const override { return false; } |
| 40 | 40 |
| 41 const GrXPOverridesForBatch& overrides() const { return fOverrides; } | 41 const GrXPOverridesForBatch& overrides() const { return fOverrides; } |
| 42 | 42 |
| 43 virtual bool isPathRendering() const override { return true; } |
| 44 |
| 43 private: | 45 private: |
| 44 GrPathProcessor(GrColor color, const GrXPOverridesForBatch& overrides, | 46 GrPathProcessor(GrColor color, const GrXPOverridesForBatch& overrides, |
| 45 const SkMatrix& viewMatrix, const SkMatrix& localMatrix); | 47 const SkMatrix& viewMatrix, const SkMatrix& localMatrix); |
| 46 | 48 |
| 47 bool hasExplicitLocalCoords() const override { return false; } | 49 bool hasExplicitLocalCoords() const override { return false; } |
| 48 | 50 |
| 49 GrColor fColor; | 51 GrColor fColor; |
| 50 const SkMatrix fViewMatrix; | 52 const SkMatrix fViewMatrix; |
| 51 const SkMatrix fLocalMatrix; | 53 const SkMatrix fLocalMatrix; |
| 52 GrXPOverridesForBatch fOverrides; | 54 GrXPOverridesForBatch fOverrides; |
| 53 | 55 |
| 54 typedef GrPrimitiveProcessor INHERITED; | 56 typedef GrPrimitiveProcessor INHERITED; |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 #endif | 59 #endif |
| OLD | NEW |