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 GrPathRendering_DEFINED | 8 #ifndef GrPathRendering_DEFINED |
9 #define GrPathRendering_DEFINED | 9 #define GrPathRendering_DEFINED |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 * including with the stroke information baked directly
into | 118 * including with the stroke information baked directly
into |
119 * the outlines. | 119 * the outlines. |
120 * | 120 * |
121 * @param GrStrokeInfo Common stroke that the GPU will apply to every path.
Note that | 121 * @param GrStrokeInfo Common stroke that the GPU will apply to every path.
Note that |
122 * if the glyph outlines contain baked-in strokes from t
he font | 122 * if the glyph outlines contain baked-in strokes from t
he font |
123 * descriptor, the GPU stroke will be applied on top of
those | 123 * descriptor, the GPU stroke will be applied on top of
those |
124 * outlines. | 124 * outlines. |
125 * | 125 * |
126 * @return a new path range populated with glyphs. | 126 * @return a new path range populated with glyphs. |
127 */ | 127 */ |
128 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt
rokeInfo&); | 128 GrPathRange* createGlyphs(const SkTypeface*, const SkScalerContextEffects&, |
| 129 const SkDescriptor*, const GrStrokeInfo&); |
129 | 130 |
130 /** None of these params are optional, pointers used just to avoid making co
pies. */ | 131 /** None of these params are optional, pointers used just to avoid making co
pies. */ |
131 struct StencilPathArgs { | 132 struct StencilPathArgs { |
132 StencilPathArgs(bool useHWAA, | 133 StencilPathArgs(bool useHWAA, |
133 GrRenderTarget* renderTarget, | 134 GrRenderTarget* renderTarget, |
134 const SkMatrix* viewMatrix, | 135 const SkMatrix* viewMatrix, |
135 const GrScissorState* scissor, | 136 const GrScissorState* scissor, |
136 const GrStencilSettings* stencil) | 137 const GrStencilSettings* stencil) |
137 : fUseHWAA(useHWAA) | 138 : fUseHWAA(useHWAA) |
138 , fRenderTarget(renderTarget) | 139 , fRenderTarget(renderTarget) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 const float transformValues[], | 202 const float transformValues[], |
202 PathTransformType, | 203 PathTransformType, |
203 int count) = 0; | 204 int count) = 0; |
204 | 205 |
205 GrGpu* fGpu; | 206 GrGpu* fGpu; |
206 private: | 207 private: |
207 GrPathRendering& operator=(const GrPathRendering&); | 208 GrPathRendering& operator=(const GrPathRendering&); |
208 }; | 209 }; |
209 | 210 |
210 #endif | 211 #endif |
OLD | NEW |