Flutter Engine
The Flutter Engine
|
#include <RasterPathUtils.h>
Public Member Functions | |
RasterMaskHelper (SkAutoPixmapStorage *pixels) | |
bool | init (SkISize pixmapSize) |
void | drawShape (const Shape &shape, const Transform &transform, const SkStrokeRec &strokeRec, const SkIRect &resultBounds) |
The RasterMaskHelper helps generate masks using the software rendering path. It is intended to be used as:
RasterMaskHelper helper(pixmapstorage); helper.init(...); helper.drawShape(...);
The result of this process will be the mask rendered in the Pixmap, at the upper left hand corner of the bounds.
TODO: this could be extended to support clip masks, similar to GrSWMaskHelper.
Definition at line 37 of file RasterPathUtils.h.
|
inline |
Definition at line 39 of file RasterPathUtils.h.
void skgpu::graphite::RasterMaskHelper::drawShape | ( | const Shape & | shape, |
const Transform & | transform, | ||
const SkStrokeRec & | strokeRec, | ||
const SkIRect & | resultBounds | ||
) |
Definition at line 41 of file RasterPathUtils.cpp.
bool skgpu::graphite::RasterMaskHelper::init | ( | SkISize | pixmapSize | ) |
Definition at line 19 of file RasterPathUtils.cpp.