8#ifndef StencilClip_DEFINED
9#define StencilClip_DEFINED
28 : fFixedClip(rtDims, scissorRect)
49 out->addStencilClip(fStencilStackID);
59 return fFixedClip.
preApply(drawBounds, aa);
65 uint32_t fStencilStackID;
static constexpr uint32_t SK_InvalidGenID
virtual PreClipResult preApply(const SkRect &drawBounds, GrAA aa) const
Effect apply(GrAppliedHardClip *, SkIRect *) const final
SkIRect getConservativeBounds() const final
PreClipResult preApply(const SkRect &drawBounds, GrAA aa) const final
StencilClip(const SkISize &rtDims, const SkIRect &scissorRect, uint32_t stencilStackID=SK_InvalidGenID)
const GrFixedClip & fixedClip() const
uint32_t stencilStackID() const
Effect apply(GrAppliedHardClip *out, SkIRect *bounds) const final
StencilClip(const SkISize &rtDims, uint32_t stencilStackID=SK_InvalidGenID)
SkIRect getConservativeBounds() const final
PreClipResult preApply(const SkRect &drawBounds, GrAA aa) const final
bool hasStencilClip() const
void setStencilClip(uint32_t stencilStackID)
GrFixedClip & fixedClip()
Optional< SkRect > bounds