Flutter Engine
The Flutter Engine
|
#include <GrSWMaskHelper.h>
Public Member Functions | |
GrSWMaskHelper (SkAutoPixmapStorage *pixels=nullptr) | |
bool | init (const SkIRect &resultBounds) |
void | drawRect (const SkRect &rect, const SkMatrix &matrix, GrAA, uint8_t alpha) |
void | drawRRect (const SkRRect &rrect, const SkMatrix &matrix, GrAA, uint8_t alpha) |
void | drawShape (const GrStyledShape &, const SkMatrix &matrix, GrAA, uint8_t alpha) |
void | drawShape (const GrShape &, const SkMatrix &matrix, GrAA, uint8_t alpha) |
GrSurfaceProxyView | toTextureView (GrRecordingContext *, SkBackingFit fit) |
void | clear (uint8_t alpha) |
The GrSWMaskHelper helps generate clip masks using the software rendering path. It is intended to be used as:
GrSWMaskHelper helper(context); helper.init(...);
draw one or more paths/rects specifying the required boolean ops
toTextureView(); // to get it from the internal bitmap to the GPU
The result of this process will be the final mask (on the GPU) in the upper left hand corner of the texture.
Definition at line 39 of file GrSWMaskHelper.h.
|
inline |
Definition at line 41 of file GrSWMaskHelper.h.
|
inline |
Definition at line 66 of file GrSWMaskHelper.h.
void GrSWMaskHelper::drawRect | ( | const SkRect & | rect, |
const SkMatrix & | matrix, | ||
GrAA | aa, | ||
uint8_t | alpha | ||
) |
Draw a single rect element of the clip stack into the accumulation bitmap
Definition at line 34 of file GrSWMaskHelper.cpp.
void GrSWMaskHelper::drawRRect | ( | const SkRRect & | rrect, |
const SkMatrix & | matrix, | ||
GrAA | aa, | ||
uint8_t | alpha | ||
) |
Definition at line 42 of file GrSWMaskHelper.cpp.
void GrSWMaskHelper::drawShape | ( | const GrShape & | shape, |
const SkMatrix & | matrix, | ||
GrAA | aa, | ||
uint8_t | alpha | ||
) |
Definition at line 74 of file GrSWMaskHelper.cpp.
void GrSWMaskHelper::drawShape | ( | const GrStyledShape & | shape, |
const SkMatrix & | matrix, | ||
GrAA | aa, | ||
uint8_t | alpha | ||
) |
Draw a single path element of the clip stack into the accumulation bitmap
Definition at line 54 of file GrSWMaskHelper.cpp.
bool GrSWMaskHelper::init | ( | const SkIRect & | resultBounds | ) |
Definition at line 111 of file GrSWMaskHelper.cpp.
GrSurfaceProxyView GrSWMaskHelper::toTextureView | ( | GrRecordingContext * | rContext, |
SkBackingFit | fit | ||
) |
Definition at line 129 of file GrSWMaskHelper.cpp.