| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 7 |
| 8 #ifndef SkDrawProcs_DEFINED | 8 #ifndef SkDrawProcs_DEFINED |
| 9 #define SkDrawProcs_DEFINED | 9 #define SkDrawProcs_DEFINED |
| 10 | 10 |
| 11 #include "SkBlitter.h" | 11 #include "SkBlitter.h" |
| 12 #include "SkDraw.h" | 12 #include "SkDraw.h" |
| 13 | 13 |
| 14 class SkAAClip; | 14 class SkAAClip; |
| 15 class SkBlitter; | 15 class SkBlitter; |
| 16 | 16 |
| 17 struct SkDraw1Glyph { | 17 struct SkDraw1Glyph { |
| 18 const SkDraw* fDraw; | 18 const SkDraw* fDraw; |
| 19 SkBounder* fBounder; | |
| 20 const SkRegion* fClip; | 19 const SkRegion* fClip; |
| 21 const SkAAClip* fAAClip; | 20 const SkAAClip* fAAClip; |
| 22 SkBlitter* fBlitter; | 21 SkBlitter* fBlitter; |
| 23 SkGlyphCache* fCache; | 22 SkGlyphCache* fCache; |
| 24 const SkPaint* fPaint; | 23 const SkPaint* fPaint; |
| 25 SkIRect fClipBounds; | 24 SkIRect fClipBounds; |
| 26 /** Half the sampling frequency of the rasterized glyph in x. */ | 25 /** Half the sampling frequency of the rasterized glyph in x. */ |
| 27 SkFixed fHalfSampleX; | 26 SkFixed fHalfSampleX; |
| 28 /** Half the sampling frequency of the rasterized glyph in y. */ | 27 /** Half the sampling frequency of the rasterized glyph in y. */ |
| 29 SkFixed fHalfSampleY; | 28 SkFixed fHalfSampleY; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 80 } |
| 82 | 81 |
| 83 if (!paint.isAntiAlias()) { | 82 if (!paint.isAntiAlias()) { |
| 84 return false; | 83 return false; |
| 85 } | 84 } |
| 86 | 85 |
| 87 return SkDrawTreatAAStrokeAsHairline(strokeWidth, matrix, coverage); | 86 return SkDrawTreatAAStrokeAsHairline(strokeWidth, matrix, coverage); |
| 88 } | 87 } |
| 89 | 88 |
| 90 #endif | 89 #endif |
| OLD | NEW |