Lines Matching refs:clip
242 // modifies the device's clip.
305 // If null, the clip will be used instead.
671 // Assuming clips never expand, if the request bounds is outside of the current clip
781 // For better or for worse, user bounds currently act as a hard clip on the layer's
973 // better in the long run to have any CF that affects transparent black expand to the clip.
1009 // clip bounds of the prior device (otherwise edges of the temporary layer would be visible).
1117 // not much we can do but clean up the layer and mark the clip as empty. This tends to come
1250 // Reset the clip restriction if the restore went past the save point that had added it.
1256 // removed save record had included modifications to the clip stack.
1446 // The device clip restriction is a surface-space rectangular intersection that cannot be
1448 // respect the restriction. Other than clip resetting, all clip operations restrict the set
1451 // implementation relies on the clip stack of the underyling SkDevices, which leads to some
1454 // Namely, a canvas restore() could undo the clip restriction's rect, and if
1459 // - Remember the save count that added the clip restriction and reset the rect to empty when
1460 // we've restored past that point to keep our state in sync with the device's clip stack.
1465 // - Historically, the empty rect would reset the clip restriction but it only could do so
1476 // A non-empty clip restriction immediately applies an intersection op (ignoring the ctm).
1494 // Respect the device clip restriction when resetting the clip if we're on the base device.
1495 // If we're not on the base device, then the "reset" applies to the top device's clip stack,
1496 // and the clip restriction will be respected automatically during a restore of the layer.
1562 // we occlude everything, so set the clip to empty
1660 // if we can't invert the CTM, we can't return local clip bounds
1930 void SkCanvas::experimental_DrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4],
1935 this->onDrawEdgeAAQuad(rect.makeSorted(), clip, aaFlags, color, mode);
2053 // as a clip. We use a clip instead of just drawing a rect in case the paint has an image
2453 // bounding rectangle is completely outside the current clip.
2524 void SkCanvas::onDrawEdgeAAQuad(const SkRect& r, const SkPoint clip[4], QuadAAFlags edgeAA,
2535 this->topDevice()->drawEdgeAAQuad(r, clip, edgeAA, color, mode);
2748 SkIRect clip = dev->devClipBounds();
2749 if (!clip.intersect({0, 0, dev->width(), dev->height()})) {
2750 clip.setEmpty();
2753 fAllocator->updateHandle(handle, dev->localToDevice(), clip);