Skia
2D Graphics Library
|
Info for how to apply the layer's paint and offset. More...
#include <SkLayerDrawLooper.h>
Public Member Functions | |
LayerInfo () | |
Initial the LayerInfo. More... | |
Public Attributes | |
BitFlags | fPaintBits |
SkBlendMode | fColorMode |
SkVector | fOffset |
bool | fPostTranslate |
applies to fOffset More... | |
Info for how to apply the layer's paint and offset.
fColorMode controls how we compute the final color for the layer: The layer's paint's color is treated as the SRC The draw's paint's color is treated as the DST final-color = Mode(layers-color, draws-color); Any SkBlendMode will work. Two common choices are: kSrc: to use the layer's color, ignoring the draw's kDst: to just keep the draw's color, ignoring the layer's
SkLayerDrawLooper::LayerInfo::LayerInfo | ( | ) |
Initial the LayerInfo.
Defaults to settings that will draw the layer with no changes: e.g. fPaintBits == 0 fColorMode == kDst_Mode fOffset == (0, 0)
SkBlendMode SkLayerDrawLooper::LayerInfo::fColorMode |
SkVector SkLayerDrawLooper::LayerInfo::fOffset |
BitFlags SkLayerDrawLooper::LayerInfo::fPaintBits |
bool SkLayerDrawLooper::LayerInfo::fPostTranslate |
applies to fOffset