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 GrGLPathRendering_DEFINED | 8 #ifndef GrGLPathRendering_DEFINED |
9 #define GrGLPathRendering_DEFINED | 9 #define GrGLPathRendering_DEFINED |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 class GrGLPathRendering : public GrPathRendering { | 27 class GrGLPathRendering : public GrPathRendering { |
28 public: | 28 public: |
29 /** | 29 /** |
30 * Create a new GrGLPathRendering object from a given GrGpuGL. | 30 * Create a new GrGLPathRendering object from a given GrGpuGL. |
31 */ | 31 */ |
32 GrGLPathRendering(GrGpuGL* gpu); | 32 GrGLPathRendering(GrGpuGL* gpu); |
33 virtual ~GrGLPathRendering(); | 33 virtual ~GrGLPathRendering(); |
34 | 34 |
35 // GrPathRendering implementations. | 35 // GrPathRendering implementations. |
36 virtual GrPath* createPath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE; | 36 virtual GrPath* createPath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE; |
37 virtual GrPathRange* createPathRange(size_t size, const SkStrokeRec&) SK_OVE
RRIDE; | 37 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, |
| 38 const SkStrokeRec&) SK_OVERRIDE; |
| 39 virtual GrPathRange* createGlyphs(const SkTypeface*, |
| 40 const SkDescriptor*, |
| 41 const SkStrokeRec&) SK_OVERRIDE; |
38 virtual void stencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; | 42 virtual void stencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; |
39 virtual void drawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; | 43 virtual void drawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; |
40 virtual void drawPaths(const GrPathRange*, const uint32_t indices[], int cou
nt, | 44 virtual void drawPaths(const GrPathRange*, const uint32_t indices[], int cou
nt, |
41 const float transforms[], PathTransformType, | 45 const float transforms[], PathTransformType, |
42 SkPath::FillType) SK_OVERRIDE; | 46 SkPath::FillType) SK_OVERRIDE; |
43 | 47 |
44 /* Called when the 3D context state is unknown. */ | 48 /* Called when the 3D context state is unknown. */ |
45 void resetContext(); | 49 void resetContext(); |
46 | 50 |
47 /** | 51 /** |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 struct PathTexGenData { | 134 struct PathTexGenData { |
131 GrGLenum fMode; | 135 GrGLenum fMode; |
132 GrGLint fNumComponents; | 136 GrGLint fNumComponents; |
133 GrGLfloat fCoefficients[3 * 3]; | 137 GrGLfloat fCoefficients[3 * 3]; |
134 }; | 138 }; |
135 int fHWActivePathTexGenSets; | 139 int fHWActivePathTexGenSets; |
136 SkTArray<PathTexGenData, true> fHWPathTexGenSettings; | 140 SkTArray<PathTexGenData, true> fHWPathTexGenSettings; |
137 }; | 141 }; |
138 | 142 |
139 #endif | 143 #endif |
OLD | NEW |