static void AntiFrameRect(const SkRect&, const SkPoint& strokeSize,
const SkRasterClip&, SkBlitter*);
static void FillTriangle(const SkPoint pts[], const SkRasterClip&, SkBlitter*);
- static void HairLine(const SkPoint&, const SkPoint&, const SkRasterClip&,
- SkBlitter*);
- static void AntiHairLine(const SkPoint&, const SkPoint&, const SkRasterClip&,
- SkBlitter*);
+ static void HairLine(SkPoint, SkPoint, const SkRasterClip&, SkBlitter*);
+ static void AntiHairLine(SkPoint, SkPoint, const SkRasterClip&, SkBlitter*);
static void HairRect(const SkRect&, const SkRasterClip&, SkBlitter*);
static void AntiHairRect(const SkRect&, const SkRasterClip&, SkBlitter*);
static void HairPath(const SkPath&, const SkRasterClip&, SkBlitter*);
static void AntiFrameRect(const SkRect&, const SkPoint& strokeSize,
const SkRegion*, SkBlitter*);
- static void HairLineRgn(const SkPoint&, const SkPoint&, const SkRegion*,
- SkBlitter*);
- static void AntiHairLineRgn(const SkPoint&, const SkPoint&, const SkRegion*,
- SkBlitter*);
+ static void HairLineRgn(SkPoint, SkPoint, const SkRegion*, SkBlitter*);
+ static void AntiHairLineRgn(SkPoint, SkPoint, const SkRegion*, SkBlitter*);
};
/** Assign an SkXRect from a SkIRect, by promoting the src rect's coordinates
}
#endif
-void SkScan::HairLineRgn(const SkPoint& pt0, const SkPoint& pt1,
- const SkRegion* clip, SkBlitter* blitter) {
+void SkScan::HairLineRgn(SkPoint pt0, SkPoint pt1, const SkRegion* clip, SkBlitter* blitter) {
SkBlitterClipper clipper;
SkRect r;
SkIRect clipR, ptsR;
}
}
-typedef void (*LineProc)(const SkPoint&, const SkPoint&, const SkRegion*,
- SkBlitter*);
+typedef void (*LineProc)(SkPoint, SkPoint, const SkRegion*, SkBlitter*);
static void hairquad(const SkPoint pts[3], const SkRegion* clip,
SkBlitter* blitter, int level, LineProc lineproc) {
return level;
}
-static void hair_path(const SkPath& path, const SkRasterClip& rclip,
- SkBlitter* blitter, LineProc lineproc) {
+static void hair_path(const SkPath& path, const SkRasterClip& rclip, SkBlitter* blitter,
+ LineProc lineproc) {
if (path.isEmpty()) {
return;
}
}
}
-void SkScan::HairPath(const SkPath& path, const SkRasterClip& clip,
- SkBlitter* blitter) {
+void SkScan::HairPath(const SkPath& path, const SkRasterClip& clip, SkBlitter* blitter) {
hair_path(path, clip, blitter, SkScan::HairLineRgn);
}
-void SkScan::AntiHairPath(const SkPath& path, const SkRasterClip& clip,
- SkBlitter* blitter) {
+void SkScan::AntiHairPath(const SkPath& path, const SkRasterClip& clip, SkBlitter* blitter) {
hair_path(path, clip, blitter, SkScan::AntiHairLineRgn);
}
SkScan::FillRect(tmp, clip, blitter);
}
-void SkScan::HairLine(const SkPoint& p0, const SkPoint& p1,
- const SkRasterClip& clip, SkBlitter* blitter) {
+void SkScan::HairLine(SkPoint p0, SkPoint p1, const SkRasterClip& clip, SkBlitter* blitter) {
if (clip.isBW()) {
HairLineRgn(p0, p1, &clip.bwRgn(), blitter);
} else {
}
}
-void SkScan::AntiHairLine(const SkPoint& p0, const SkPoint& p1,
- const SkRasterClip& clip, SkBlitter* blitter) {
+void SkScan::AntiHairLine(SkPoint p0, SkPoint p1, const SkRasterClip& clip, SkBlitter* blitter) {
if (clip.isBW()) {
AntiHairLineRgn(p0, p1, &clip.bwRgn(), blitter);
} else {