| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrDefaultGeoProcFactory_DEFINED | 8 #ifndef GrDefaultGeoProcFactory_DEFINED |
| 9 #define GrDefaultGeoProcFactory_DEFINED | 9 #define GrDefaultGeoProcFactory_DEFINED |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 struct PositionColorAttr { | 30 struct PositionColorAttr { |
| 31 SkPoint fPosition; | 31 SkPoint fPosition; |
| 32 SkColor fColor; | 32 SkColor fColor; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 struct PositionColorCoverageAttr { | 35 struct PositionColorCoverageAttr { |
| 36 SkPoint fPosition; | 36 SkPoint fPosition; |
| 37 SkColor fColor; | 37 SkColor fColor; |
| 38 GrColor fCoverage; | 38 float fCoverage; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 struct PositionLocalCoordAttr { | 41 struct PositionLocalCoordAttr { |
| 42 SkPoint fPosition; | 42 SkPoint fPosition; |
| 43 SkPoint fLocalCoord; | 43 SkPoint fLocalCoord; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 struct PositionLocalCoordCoverageAttr { | 46 struct PositionLocalCoordCoverageAttr { |
| 47 SkPoint fPosition; | 47 SkPoint fPosition; |
| 48 SkPoint fLocalCoord; | 48 SkPoint fLocalCoord; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 */ | 127 */ |
| 128 sk_sp<GrGeometryProcessor> MakeForDeviceSpace(const Color&, | 128 sk_sp<GrGeometryProcessor> MakeForDeviceSpace(const Color&, |
| 129 const Coverage&, | 129 const Coverage&, |
| 130 const LocalCoords&, | 130 const LocalCoords&, |
| 131 const SkMatrix& viewMatrix); | 131 const SkMatrix& viewMatrix); |
| 132 | 132 |
| 133 inline size_t DefaultVertexStride() { return sizeof(PositionAttr); } | 133 inline size_t DefaultVertexStride() { return sizeof(PositionAttr); } |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 #endif | 136 #endif |
| OLD | NEW |