Go to the source code of this file.
|
static SkPaint | make_paint_with_image (const SkPaint &origPaint, const SkBitmap &bitmap, const SkSamplingOptions &sampling, SkMatrix *matrix=nullptr) |
|
static void | bw_pt_hair_proc (const PtProcRec &rec, const SkPoint devPts[], int count, SkBlitter *blitter) |
|
static void | bw_line_hair_proc (const PtProcRec &rec, const SkPoint devPts[], int count, SkBlitter *blitter) |
|
static void | bw_poly_hair_proc (const PtProcRec &rec, const SkPoint devPts[], int count, SkBlitter *blitter) |
|
static void | aa_line_hair_proc (const PtProcRec &rec, const SkPoint devPts[], int count, SkBlitter *blitter) |
|
static void | aa_poly_hair_proc (const PtProcRec &rec, const SkPoint devPts[], int count, SkBlitter *blitter) |
|
static SkRect | make_square_rad (SkPoint center, SkScalar radius) |
|
static SkXRect | make_xrect (const SkRect &r) |
|
static void | bw_square_proc (const PtProcRec &rec, const SkPoint devPts[], int count, SkBlitter *blitter) |
|
static void | aa_square_proc (const PtProcRec &rec, const SkPoint devPts[], int count, SkBlitter *blitter) |
|
static bool | clipped_out (const SkMatrix &m, const SkRasterClip &c, const SkRect &srcR) |
|
static bool | clipped_out (const SkMatrix &matrix, const SkRasterClip &clip, int width, int height) |
|
static bool | clipHandlesSprite (const SkRasterClip &clip, int x, int y, const SkPixmap &pmap) |
|
◆ MAX_DEV_PTS
◆ aa_line_hair_proc()
Definition at line 102 of file SkDraw.cpp.
103 {
104 for (
int i = 0;
i <
count;
i += 2) {
106 }
107}
static void AntiHairLine(const SkPoint[], int count, const SkRasterClip &, SkBlitter *)
◆ aa_poly_hair_proc()
◆ aa_square_proc()
Definition at line 141 of file SkDraw.cpp.
142 {
147 }
148 }
149}
static SkXRect make_xrect(const SkRect &r)
static SkRect make_square_rad(SkPoint center, SkScalar radius)
static void AntiFillXRect(const SkXRect &, const SkRasterClip &, SkBlitter *)
bool intersect(const SkRect &r)
◆ bw_line_hair_proc()
Definition at line 88 of file SkDraw.cpp.
89 {
92 }
93}
static void HairLine(const SkPoint[], int count, const SkRasterClip &, SkBlitter *)
◆ bw_poly_hair_proc()
◆ bw_pt_hair_proc()
Definition at line 77 of file SkDraw.cpp.
78 {
84 }
85 }
86}
#define SkScalarFloorToInt(x)
virtual void blitH(int x, int y, int width)=0
Blit a horizontal run of one or more pixels.
bool contains(int32_t x, int32_t y) const
◆ bw_square_proc()
Definition at line 131 of file SkDraw.cpp.
132 {
137 }
138 }
139}
static void FillXRect(const SkXRect &, const SkRasterClip &, SkBlitter *)
◆ clipHandlesSprite()
Definition at line 299 of file SkDraw.cpp.
299 {
301}
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
◆ clipped_out() [1/2]
Definition at line 285 of file SkDraw.cpp.
286 {
288 m.mapRect(&dstR, srcR);
290}
bool quickReject(const SkIRect &rect) const
void roundOut(SkIRect *dst) const
◆ clipped_out() [2/2]
Definition at line 292 of file SkDraw.cpp.
293 {
297}
static bool clipped_out(const SkMatrix &m, const SkRasterClip &c, const SkRect &srcR)
unsigned useCenter Optional< SkMatrix > matrix
void setIWH(int32_t width, int32_t height)
◆ make_paint_with_image()
Definition at line 42 of file SkDraw.cpp.
44 {
50}
@ kNever_SkCopyPixelsMode
never copy src pixels (even if they are marked mutable)
sk_sp< SkShader > SkMakeBitmapShaderForPaint(const SkPaint &paint, const SkBitmap &src, SkTileMode, SkTileMode, const SkSamplingOptions &, const SkMatrix *localMatrix, SkCopyPixelsMode)
SkSamplingOptions sampling
◆ make_square_rad()
Definition at line 116 of file SkDraw.cpp.
116 {
117 return {
120 };
121}
static SkScalar center(float pos0, float pos1)
◆ make_xrect()
Definition at line 123 of file SkDraw.cpp.
123 {
125 return {
128 };
129}
#define SkScalarToFixed(x)
static bool FitsInFixed(const SkRect &r)
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
SkScalar fTop
smaller y-axis bounds