5REG_FIDDLE(Canvas_getDeviceClipBounds, 256, 256,
true, 0) {
10 SkDebugf(
"left:%d top:%d right:%d bottom:%d\n",
11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);
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",
19 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);
21 canvas->
scale(1.f/2, 1.f/2);
24 SkDebugf(
"left:%d top:%d right:%d bottom:%d\n",
25 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);