Go to the source code of this file.
|
| REG_FIDDLE (Canvas_getLocalClipBounds, 256, 256, true, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_getLocalClipBounds |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Canvas_getLocalClipBounds.cpp.
5 {
10 SkDebugf(
"left:%g top:%g right:%g bottom:%g\n",
12 SkPoint clipPoints[] = {{30, 130}, {120, 130}, {120, 230} };
14 clipPath.addPoly(clipPoints, std::size(clipPoints),
true);
17 SkDebugf(
"left:%g top:%g right:%g bottom:%g\n",
21 SkDebugf(
"left:%g top:%g right:%g bottom:%g\n",
23}
24}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
SkRect getLocalClipBounds() const
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void scale(SkScalar sx, SkScalar sy)
Optional< SkRect > bounds
clipPath(r.path, r.opAA.op(), r.opAA.aa())) DRAW(ClipRRect