Flutter Engine
The Flutter Engine
|
Public Member Functions | |
Clip (LazyProxyTest *test, GrTextureProxy *atlas) | |
Public Member Functions inherited from GrClip | |
virtual | ~GrClip () |
virtual PreClipResult | preApply (const SkRect &drawBounds, GrAA aa) const |
Private Member Functions | |
SkIRect | getConservativeBounds () const final |
Effect | apply (GrRecordingContext *rContext, skgpu::ganesh::SurfaceDrawContext *, GrDrawOp *, GrAAType, GrAppliedClip *out, SkRect *bounds) const override |
Additional Inherited Members | |
Public Types inherited from GrClip | |
enum class | Effect { kClipped , kUnclipped , kClippedOut } |
enum class | BoundsType { kExterior , kInterior } |
Static Public Member Functions inherited from GrClip | |
static bool | IsInsideClip (const SkIRect &innerClipBounds, const SkRect &drawBounds, GrAA aa) |
static bool | IsOutsideClip (const SkIRect &outerClipBounds, const SkRect &drawBounds, GrAA aa) |
static SkIRect | GetPixelIBounds (const SkRect &bounds, GrAA aa, BoundsType mode=BoundsType::kExterior) |
static bool | IsPixelAligned (const SkRect &rect) |
Static Public Attributes inherited from GrClip | |
static constexpr SkScalar | kBoundsTolerance = 1e-3f |
static constexpr SkScalar | kHalfPixelRoundingTolerance = 5e-2f |
Definition at line 221 of file LazyProxyTest.cpp.
|
inline |
Definition at line 223 of file LazyProxyTest.cpp.
|
inlineoverrideprivatevirtual |
This computes a GrAppliedClip from the clip which in turn can be used to build a GrPipeline. To determine the appropriate clipping implementation the GrClip subclass must know whether the draw will enable HW AA or uses the stencil buffer. On input 'bounds' is a conservative bounds of the draw that is to be clipped. If kClipped or kUnclipped is returned, the 'bounds' will have been updated to be contained within the clip bounds (or the device's, for wide-open clips). If kNoDraw is returned, 'bounds' and the applied clip are in an undetermined state and should be ignored (and the draw should be skipped).
Implements GrClip.
Definition at line 231 of file LazyProxyTest.cpp.
|
inlinefinalprivatevirtual |
Compute a conservative pixel bounds restricted to the given render target dimensions. The returned bounds represent the limits of pixels that can be drawn; anything outside of the bounds will be entirely clipped out.
Implements GrClip.
Definition at line 228 of file LazyProxyTest.cpp.