OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrPathRenderer_DEFINED | 8 #ifndef GrPathRenderer_DEFINED |
9 #define GrPathRenderer_DEFINED | 9 #define GrPathRenderer_DEFINED |
10 | 10 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 * | 178 * |
179 * fResourceProvider The resource provider for creating gpu resources t
o render the path | 179 * fResourceProvider The resource provider for creating gpu resources t
o render the path |
180 * fDrawContext The target of the draws | 180 * fDrawContext The target of the draws |
181 * fViewMatrix Matrix applied to the path. | 181 * fViewMatrix Matrix applied to the path. |
182 * fPath The path to draw. | 182 * fPath The path to draw. |
183 * fIsAA Is the path to be drawn AA (only set when MSAA is
available) | 183 * fIsAA Is the path to be drawn AA (only set when MSAA is
available) |
184 */ | 184 */ |
185 struct StencilPathArgs { | 185 struct StencilPathArgs { |
186 GrResourceProvider* fResourceProvider; | 186 GrResourceProvider* fResourceProvider; |
187 GrDrawContext* fDrawContext; | 187 GrDrawContext* fDrawContext; |
188 const GrFixedClip* fClip; | 188 const GrClip* fClip; |
189 const SkMatrix* fViewMatrix; | 189 const SkMatrix* fViewMatrix; |
190 bool fIsAA; | 190 bool fIsAA; |
191 const GrShape* fShape; | 191 const GrShape* fShape; |
192 | 192 |
193 #ifdef SK_DEBUG | 193 #ifdef SK_DEBUG |
194 void validate() const { | 194 void validate() const { |
195 SkASSERT(fResourceProvider); | 195 SkASSERT(fResourceProvider); |
196 SkASSERT(fDrawContext); | 196 SkASSERT(fDrawContext); |
197 SkASSERT(fViewMatrix); | 197 SkASSERT(fViewMatrix); |
198 SkASSERT(fShape); | 198 SkASSERT(fShape); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 drawArgs.fShape = args.fShape; | 285 drawArgs.fShape = args.fShape; |
286 drawArgs.fAntiAlias = false; // In this case the MSAA handles the AA so
we want to draw BW | 286 drawArgs.fAntiAlias = false; // In this case the MSAA handles the AA so
we want to draw BW |
287 drawArgs.fGammaCorrect = false; | 287 drawArgs.fGammaCorrect = false; |
288 this->drawPath(drawArgs); | 288 this->drawPath(drawArgs); |
289 } | 289 } |
290 | 290 |
291 typedef SkRefCnt INHERITED; | 291 typedef SkRefCnt INHERITED; |
292 }; | 292 }; |
293 | 293 |
294 #endif | 294 #endif |
OLD | NEW |