| 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 | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|