Flutter Engine
The Flutter Engine
|
#include <StencilMaskHelper.h>
Public Member Functions | |
StencilMaskHelper (GrRecordingContext *, SurfaceDrawContext *) | |
bool | init (const SkIRect &maskBounds, uint32_t genID, const GrWindowRectangles &windowRects, int numFPs) |
void | drawRect (const SkRect &rect, const SkMatrix &matrix, SkRegion::Op, GrAA) |
bool | drawPath (const SkPath &path, const SkMatrix &matrix, SkRegion::Op, GrAA) |
bool | drawShape (const GrShape &shape, const SkMatrix &matrix, SkRegion::Op, GrAA) |
void | clear (bool insideStencil) |
void | finish () |
The StencilMaskHelper helps generate clip masks using the stencil buffer. It is intended to be used as:
StencilMaskHelper helper; helper.init(...);
draw one or more paths/rects specifying the required boolean ops
helper.finish();
The result of this process will be the mask stored in the clip bits of the stencil buffer.
Definition at line 37 of file StencilMaskHelper.h.
skgpu::ganesh::StencilMaskHelper::StencilMaskHelper | ( | GrRecordingContext * | rContext, |
SurfaceDrawContext * | sdc | ||
) |
Definition at line 346 of file StencilMaskHelper.cpp.
void skgpu::ganesh::StencilMaskHelper::clear | ( | bool | insideStencil | ) |
Definition at line 488 of file StencilMaskHelper.cpp.
bool skgpu::ganesh::StencilMaskHelper::drawPath | ( | const SkPath & | path, |
const SkMatrix & | matrix, | ||
SkRegion::Op | op, | ||
GrAA | aa | ||
) |
Definition at line 400 of file StencilMaskHelper.cpp.
void skgpu::ganesh::StencilMaskHelper::drawRect | ( | const SkRect & | rect, |
const SkMatrix & | matrix, | ||
SkRegion::Op | op, | ||
GrAA | aa | ||
) |
Definition at line 370 of file StencilMaskHelper.cpp.
bool skgpu::ganesh::StencilMaskHelper::drawShape | ( | const GrShape & | shape, |
const SkMatrix & | matrix, | ||
SkRegion::Op | op, | ||
GrAA | aa | ||
) |
Definition at line 474 of file StencilMaskHelper.cpp.
void skgpu::ganesh::StencilMaskHelper::finish | ( | ) |
Definition at line 500 of file StencilMaskHelper.cpp.
bool skgpu::ganesh::StencilMaskHelper::init | ( | const SkIRect & | maskBounds, |
uint32_t | genID, | ||
const GrWindowRectangles & | windowRects, | ||
int | numFPs | ||
) |
Definition at line 353 of file StencilMaskHelper.cpp.