Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Side by Side Diff: src/gpu/GrPathRendering.h

Issue 1880873002: Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.c… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/fonts/SkTestScalerContext.cpp ('k') | src/gpu/GrPathRendering.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/fonts/SkTestScalerContext.cpp ('k') | src/gpu/GrPathRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698