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 SkScalerContextEffects&, | 128 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt
rokeInfo&); |
129 const SkDescriptor*, const GrStrokeInfo&); | |
130 | 129 |
131 /** None of these params are optional, pointers used just to avoid making co
pies. */ | 130 /** None of these params are optional, pointers used just to avoid making co
pies. */ |
132 struct StencilPathArgs { | 131 struct StencilPathArgs { |
133 StencilPathArgs(bool useHWAA, | 132 StencilPathArgs(bool useHWAA, |
134 GrRenderTarget* renderTarget, | 133 GrRenderTarget* renderTarget, |
135 const SkMatrix* viewMatrix, | 134 const SkMatrix* viewMatrix, |
136 const GrScissorState* scissor, | 135 const GrScissorState* scissor, |
137 const GrStencilSettings* stencil) | 136 const GrStencilSettings* stencil) |
138 : fUseHWAA(useHWAA) | 137 : fUseHWAA(useHWAA) |
139 , fRenderTarget(renderTarget) | 138 , fRenderTarget(renderTarget) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 const float transformValues[], | 201 const float transformValues[], |
203 PathTransformType, | 202 PathTransformType, |
204 int count) = 0; | 203 int count) = 0; |
205 | 204 |
206 GrGpu* fGpu; | 205 GrGpu* fGpu; |
207 private: | 206 private: |
208 GrPathRendering& operator=(const GrPathRendering&); | 207 GrPathRendering& operator=(const GrPathRendering&); |
209 }; | 208 }; |
210 | 209 |
211 #endif | 210 #endif |
OLD | NEW |