| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 * including with the stroke information baked directly
into | 117 * including with the stroke information baked directly
into |
| 118 * the outlines. | 118 * the outlines. |
| 119 * | 119 * |
| 120 * @param GrStrokeInfo Common stroke that the GPU will apply to every path.
Note that | 120 * @param GrStrokeInfo Common stroke that the GPU will apply to every path.
Note that |
| 121 * if the glyph outlines contain baked-in strokes from t
he font | 121 * if the glyph outlines contain baked-in strokes from t
he font |
| 122 * descriptor, the GPU stroke will be applied on top of
those | 122 * descriptor, the GPU stroke will be applied on top of
those |
| 123 * outlines. | 123 * outlines. |
| 124 * | 124 * |
| 125 * @return a new path range populated with glyphs. | 125 * @return a new path range populated with glyphs. |
| 126 */ | 126 */ |
| 127 virtual GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, | 127 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt
rokeInfo&); |
| 128 const GrStrokeInfo&) = 0; | |
| 129 | 128 |
| 130 /** None of these params are optional, pointers used just to avoid making co
pies. */ | 129 /** None of these params are optional, pointers used just to avoid making co
pies. */ |
| 131 struct StencilPathArgs { | 130 struct StencilPathArgs { |
| 132 StencilPathArgs(bool useHWAA, | 131 StencilPathArgs(bool useHWAA, |
| 133 GrRenderTarget* renderTarget, | 132 GrRenderTarget* renderTarget, |
| 134 const SkMatrix* viewMatrix, | 133 const SkMatrix* viewMatrix, |
| 135 const GrScissorState* scissor, | 134 const GrScissorState* scissor, |
| 136 const GrStencilSettings* stencil) | 135 const GrStencilSettings* stencil) |
| 137 : fUseHWAA(useHWAA) | 136 : fUseHWAA(useHWAA) |
| 138 , fRenderTarget(renderTarget) | 137 , fRenderTarget(renderTarget) |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 virtual void onDrawPath(const DrawPathArgs&, const GrPath*) = 0; | 185 virtual void onDrawPath(const DrawPathArgs&, const GrPath*) = 0; |
| 187 virtual void onDrawPaths(const DrawPathArgs&, const GrPathRange*, const void
*, PathIndexType, | 186 virtual void onDrawPaths(const DrawPathArgs&, const GrPathRange*, const void
*, PathIndexType, |
| 188 const float[], PathTransformType, int) = 0; | 187 const float[], PathTransformType, int) = 0; |
| 189 | 188 |
| 190 GrGpu* fGpu; | 189 GrGpu* fGpu; |
| 191 private: | 190 private: |
| 192 GrPathRendering& operator=(const GrPathRendering&); | 191 GrPathRendering& operator=(const GrPathRendering&); |
| 193 }; | 192 }; |
| 194 | 193 |
| 195 #endif | 194 #endif |
| OLD | NEW |