| 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 GrAAHairLinePathRenderer_DEFINED | 9 #ifndef GrAAHairLinePathRenderer_DEFINED |
| 10 #define GrAAHairLinePathRenderer_DEFINED | 10 #define GrAAHairLinePathRenderer_DEFINED |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const GrDrawTarget* target, | 22 const GrDrawTarget* target, |
| 23 bool antiAlias) const SK_OVERRIDE; | 23 bool antiAlias) const SK_OVERRIDE; |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 virtual bool onDrawPath(const SkPath& path, | 26 virtual bool onDrawPath(const SkPath& path, |
| 27 const SkStrokeRec& stroke, | 27 const SkStrokeRec& stroke, |
| 28 GrDrawTarget* target, | 28 GrDrawTarget* target, |
| 29 bool antiAlias) SK_OVERRIDE; | 29 bool antiAlias) SK_OVERRIDE; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 | |
| 33 GrAAHairLinePathRenderer(const GrContext* context, | 32 GrAAHairLinePathRenderer(const GrContext* context, |
| 34 const GrIndexBuffer* fLinesIndexBuffer, | 33 const GrIndexBuffer* fLinesIndexBuffer, |
| 35 const GrIndexBuffer* fQuadsIndexBuffer); | 34 const GrIndexBuffer* fQuadsIndexBuffer); |
| 36 | 35 |
| 37 bool createGeom(const SkPath& path, | 36 bool createGeom(const SkPath& path, |
| 38 GrDrawTarget* target, | 37 GrDrawTarget* target, |
| 39 int* lineCnt, | 38 int* lineCnt, |
| 40 int* quadCnt, | 39 int* quadCnt, |
| 41 GrDrawTarget::AutoReleaseGeometry* arg); | 40 GrDrawTarget::AutoReleaseGeometry* arg, |
| 41 SkRect* devBounds ); |
| 42 | 42 |
| 43 const GrIndexBuffer* fLinesIndexBuffer; | 43 const GrIndexBuffer* fLinesIndexBuffer; |
| 44 const GrIndexBuffer* fQuadsIndexBuffer; | 44 const GrIndexBuffer* fQuadsIndexBuffer; |
| 45 | 45 |
| 46 typedef GrPathRenderer INHERITED; | 46 typedef GrPathRenderer INHERITED; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 | 49 |
| 50 #endif | 50 #endif |
| OLD | NEW |