| 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 13 matching lines...) Expand all Loading... |
| 24 class GrPathProcessor : public GrPrimitiveProcessor { | 24 class GrPathProcessor : public GrPrimitiveProcessor { |
| 25 public: | 25 public: |
| 26 static GrPathProcessor* Create(GrColor color, | 26 static GrPathProcessor* Create(GrColor color, |
| 27 const SkMatrix& viewMatrix = SkMatrix::I(), | 27 const SkMatrix& viewMatrix = SkMatrix::I(), |
| 28 const SkMatrix& localMatrix = SkMatrix::I())
{ | 28 const SkMatrix& localMatrix = SkMatrix::I())
{ |
| 29 return new GrPathProcessor(color, viewMatrix, localMatrix); | 29 return new GrPathProcessor(color, viewMatrix, localMatrix); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void initBatchTracker(GrBatchTracker*, const GrPipelineOptimizations&) const
override; | 32 void initBatchTracker(GrBatchTracker*, const GrPipelineOptimizations&) const
override; |
| 33 | 33 |
| 34 bool canMakeEqual(const GrBatchTracker& mine, | 34 bool isEqual(const GrBatchTracker& mine, |
| 35 const GrPrimitiveProcessor& that, | 35 const GrPrimitiveProcessor& that, |
| 36 const GrBatchTracker& theirs) const override; | 36 const GrBatchTracker& theirs) const; |
| 37 | 37 |
| 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 const SkMatrix& viewMatrix() const { return fViewMatrix; } | 41 const SkMatrix& viewMatrix() const { return fViewMatrix; } |
| 42 const SkMatrix& localMatrix() const { return fLocalMatrix; } | 42 const SkMatrix& localMatrix() const { return fLocalMatrix; } |
| 43 | 43 |
| 44 | 44 |
| 45 void getInvariantOutputColor(GrInitInvariantOutput* out) const override; | 45 void getInvariantOutputColor(GrInitInvariantOutput* out) const override; |
| 46 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override; | 46 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 bool hasExplicitLocalCoords() const override { return false; } | 62 bool hasExplicitLocalCoords() const override { return false; } |
| 63 | 63 |
| 64 GrColor fColor; | 64 GrColor fColor; |
| 65 const SkMatrix fViewMatrix; | 65 const SkMatrix fViewMatrix; |
| 66 const SkMatrix fLocalMatrix; | 66 const SkMatrix fLocalMatrix; |
| 67 | 67 |
| 68 typedef GrPrimitiveProcessor INHERITED; | 68 typedef GrPrimitiveProcessor INHERITED; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 #endif | 71 #endif |
| OLD | NEW |