OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 The Android Open Source Project | 3 * Copyright 2011 The Android Open Source Project |
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 | 9 |
10 #ifndef SkScan_DEFINED | 10 #ifndef SkScan_DEFINED |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const SkRasterClip&, SkBlitter*); | 49 const SkRasterClip&, SkBlitter*); |
50 static void AntiFrameRect(const SkRect&, const SkPoint& strokeSize, | 50 static void AntiFrameRect(const SkRect&, const SkPoint& strokeSize, |
51 const SkRasterClip&, SkBlitter*); | 51 const SkRasterClip&, SkBlitter*); |
52 static void FillTriangle(const SkPoint pts[], const SkRasterClip&, SkBlitter
*); | 52 static void FillTriangle(const SkPoint pts[], const SkRasterClip&, SkBlitter
*); |
53 static void HairLine(const SkPoint[], int count, const SkRasterClip&, SkBlit
ter*); | 53 static void HairLine(const SkPoint[], int count, const SkRasterClip&, SkBlit
ter*); |
54 static void AntiHairLine(const SkPoint[], int count, const SkRasterClip&, Sk
Blitter*); | 54 static void AntiHairLine(const SkPoint[], int count, const SkRasterClip&, Sk
Blitter*); |
55 static void HairRect(const SkRect&, const SkRasterClip&, SkBlitter*); | 55 static void HairRect(const SkRect&, const SkRasterClip&, SkBlitter*); |
56 static void AntiHairRect(const SkRect&, const SkRasterClip&, SkBlitter*); | 56 static void AntiHairRect(const SkRect&, const SkRasterClip&, SkBlitter*); |
57 static void HairPath(const SkPath&, const SkRasterClip&, SkBlitter*); | 57 static void HairPath(const SkPath&, const SkRasterClip&, SkBlitter*); |
58 static void AntiHairPath(const SkPath&, const SkRasterClip&, SkBlitter*); | 58 static void AntiHairPath(const SkPath&, const SkRasterClip&, SkBlitter*); |
| 59 static void HairCapPath(const SkPath&, const SkRasterClip&, SkBlitter*); |
| 60 static void AntiHairCapPath(const SkPath&, const SkRasterClip&, SkBlitter*); |
59 | 61 |
60 private: | 62 private: |
61 friend class SkAAClip; | 63 friend class SkAAClip; |
62 friend class SkRegion; | 64 friend class SkRegion; |
63 | 65 |
64 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*); | 66 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*); |
65 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*); | 67 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*); |
66 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*); | 68 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*); |
67 static void AntiFillRect(const SkRect&, const SkRegion* clip, SkBlitter*); | 69 static void AntiFillRect(const SkRect&, const SkRegion* clip, SkBlitter*); |
68 static void AntiFillXRect(const SkXRect&, const SkRegion*, SkBlitter*); | 70 static void AntiFillXRect(const SkXRect&, const SkRegion*, SkBlitter*); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 for right/bottom), and store the result in the SkIRect. | 114 for right/bottom), and store the result in the SkIRect. |
113 */ | 115 */ |
114 static inline void XRect_roundOut(const SkXRect& xr, SkIRect* dst) { | 116 static inline void XRect_roundOut(const SkXRect& xr, SkIRect* dst) { |
115 dst->fLeft = SkFixedFloorToInt(xr.fLeft); | 117 dst->fLeft = SkFixedFloorToInt(xr.fLeft); |
116 dst->fTop = SkFixedFloorToInt(xr.fTop); | 118 dst->fTop = SkFixedFloorToInt(xr.fTop); |
117 dst->fRight = SkFixedCeilToInt(xr.fRight); | 119 dst->fRight = SkFixedCeilToInt(xr.fRight); |
118 dst->fBottom = SkFixedCeilToInt(xr.fBottom); | 120 dst->fBottom = SkFixedCeilToInt(xr.fBottom); |
119 } | 121 } |
120 | 122 |
121 #endif | 123 #endif |
OLD | NEW |