Skia
2D Graphics Library
|
Perform a series of path operations, optimized for unioning many paths together. More...
#include <SkPathOps.h>
Public Member Functions | |
void | add (const SkPath &path, SkPathOp _operator) |
Add one or more paths and their operand. More... | |
bool | resolve (SkPath *result) |
Computes the sum of all paths and operands, and resets the builder to its initial state. More... | |
Perform a series of path operations, optimized for unioning many paths together.
Add one or more paths and their operand.
The builder is empty before the first path is added, so the result of a single add is (emptyPath OP path).
path | The second operand. |
_operator | The operator to apply to the existing and supplied paths. |
bool SkOpBuilder::resolve | ( | SkPath * | result | ) |
Computes the sum of all paths and operands, and resets the builder to its initial state.
result | The product of the operands. |