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