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

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

Issue 1460873002: Add stroking support to distance field path renderer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix Valgrind issue Created 5 years 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 | « no previous file | src/gpu/batches/GrAADistanceFieldPathRenderer.h » ('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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrPathRenderer_DEFINED 9 #ifndef GrPathRenderer_DEFINED
10 #define GrPathRenderer_DEFINED 10 #define GrPathRenderer_DEFINED
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 SkDEBUGCODE(args.validate();) 108 SkDEBUGCODE(args.validate();)
109 return this->onCanDrawPath(args); 109 return this->onCanDrawPath(args);
110 } 110 }
111 111
112 /** 112 /**
113 * Args to drawPath() 113 * Args to drawPath()
114 * 114 *
115 * fTarget The target that the path will be rendered to 115 * fTarget The target that the path will be rendered to
116 * fResourceProvider The resource provider for creating gpu resources t o render the path 116 * fResourceProvider The resource provider for creating gpu resources t o render the path
117 * fPipelineBuilder The pipelineBuilder 117 * fPipelineBuilder The pipelineBuilder
118 * fColor Color to render with
118 * fViewMatrix The viewMatrix 119 * fViewMatrix The viewMatrix
119 * fPath the path to draw. 120 * fPath the path to draw.
120 * fStroke the stroke information (width, join, cap) 121 * fStroke the stroke information (width, join, cap)
121 * fAntiAlias true if anti-aliasing is required. 122 * fAntiAlias true if anti-aliasing is required.
122 */ 123 */
123 struct DrawPathArgs { 124 struct DrawPathArgs {
124 GrDrawTarget* fTarget; 125 GrDrawTarget* fTarget;
125 GrResourceProvider* fResourceProvider; 126 GrResourceProvider* fResourceProvider;
126 GrPipelineBuilder* fPipelineBuilder; 127 GrPipelineBuilder* fPipelineBuilder;
127 GrColor fColor; 128 GrColor fColor;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 drawArgs.fStroke = args.fStroke; 283 drawArgs.fStroke = args.fStroke;
283 drawArgs.fAntiAlias = false; 284 drawArgs.fAntiAlias = false;
284 this->drawPath(drawArgs); 285 this->drawPath(drawArgs);
285 } 286 }
286 287
287 288
288 typedef SkRefCnt INHERITED; 289 typedef SkRefCnt INHERITED;
289 }; 290 };
290 291
291 #endif 292 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/batches/GrAADistanceFieldPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698