OLD | NEW |
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 Loading... |
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 | |
119 * fViewMatrix The viewMatrix | 118 * fViewMatrix The viewMatrix |
120 * fPath the path to draw. | 119 * fPath the path to draw. |
121 * fStroke the stroke information (width, join, cap) | 120 * fStroke the stroke information (width, join, cap) |
122 * fAntiAlias true if anti-aliasing is required. | 121 * fAntiAlias true if anti-aliasing is required. |
123 */ | 122 */ |
124 struct DrawPathArgs { | 123 struct DrawPathArgs { |
125 GrDrawTarget* fTarget; | 124 GrDrawTarget* fTarget; |
126 GrResourceProvider* fResourceProvider; | 125 GrResourceProvider* fResourceProvider; |
127 GrPipelineBuilder* fPipelineBuilder; | 126 GrPipelineBuilder* fPipelineBuilder; |
128 GrColor fColor; | 127 GrColor fColor; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 drawArgs.fStroke = args.fStroke; | 282 drawArgs.fStroke = args.fStroke; |
284 drawArgs.fAntiAlias = false; | 283 drawArgs.fAntiAlias = false; |
285 this->drawPath(drawArgs); | 284 this->drawPath(drawArgs); |
286 } | 285 } |
287 | 286 |
288 | 287 |
289 typedef SkRefCnt INHERITED; | 288 typedef SkRefCnt INHERITED; |
290 }; | 289 }; |
291 | 290 |
292 #endif | 291 #endif |
OLD | NEW |