Flutter Engine
The Flutter Engine
|
#include <SkCanvas.h>
Public Member Functions | |
SaveLayerRec () | |
SaveLayerRec (const SkRect *bounds, const SkPaint *paint, SaveLayerFlags saveLayerFlags=0) | |
SaveLayerRec (const SkRect *bounds, const SkPaint *paint, const SkImageFilter *backdrop, SaveLayerFlags saveLayerFlags) | |
SaveLayerRec (const SkRect *bounds, const SkPaint *paint, const SkImageFilter *backdrop, const SkColorSpace *colorSpace, SaveLayerFlags saveLayerFlags) | |
Public Attributes | |
const SkRect * | fBounds = nullptr |
const SkPaint * | fPaint = nullptr |
FilterSpan | fFilters = {} |
const SkImageFilter * | fBackdrop = nullptr |
const SkColorSpace * | fColorSpace = nullptr |
SaveLayerFlags | fSaveLayerFlags = 0 |
Friends | |
class | SkCanvas |
class | SkCanvasPriv |
SaveLayerRec contains the state used to create the layer.
Definition at line 684 of file SkCanvas.h.
|
inline |
Sets fBounds, fPaint, and fBackdrop to nullptr. Clears fSaveLayerFlags.
Definition at line 689 of file SkCanvas.h.
|
inline |
Sets fBounds, fPaint, and fSaveLayerFlags; sets fBackdrop to nullptr.
bounds | layer dimensions; may be nullptr |
paint | applied to layer when overlaying prior layer; may be nullptr |
saveLayerFlags | SaveLayerRec options to modify layer |
Definition at line 698 of file SkCanvas.h.
|
inline |
Sets fBounds, fPaint, fBackdrop, and fSaveLayerFlags.
bounds | layer dimensions; may be nullptr |
paint | applied to layer when overlaying prior layer; may be nullptr |
backdrop | If not null, this causes the current layer to be filtered by backdrop, and then drawn into the new layer (respecting the current clip). If null, the new layer is initialized with transparent-black. |
saveLayerFlags | SaveLayerRec options to modify layer |
Definition at line 713 of file SkCanvas.h.
|
inline |
Sets fBounds, fColorSpace, and fSaveLayerFlags.
bounds | layer dimensions; may be nullptr |
paint | applied to layer when overlaying prior layer; may be nullptr |
backdrop | If not null, this causes the current layer to be filtered by backdrop, and then drawn into the new layer (respecting the current clip). If null, the new layer is initialized with transparent-black. |
colorSpace | If not null, when the layer is restored, a color space conversion will be applied from this color space to the parent's color space. The restore paint and backdrop filters will be applied in this color space. If null, the new layer will inherit the color space from its parent. |
saveLayerFlags | SaveLayerRec options to modify layer |
Definition at line 735 of file SkCanvas.h.
|
friend |
Definition at line 766 of file SkCanvas.h.
|
friend |
Definition at line 767 of file SkCanvas.h.
const SkImageFilter* SkCanvas::SaveLayerRec::fBackdrop = nullptr |
If not null, this triggers the same initialization behavior as setting kInitWithPrevious_SaveLayerFlag on fSaveLayerFlags: the current layer is copied into the new layer, rather than initializing the new layer with transparent-black. This is then filtered by fBackdrop (respecting the current clip).
Definition at line 753 of file SkCanvas.h.
const SkRect* SkCanvas::SaveLayerRec::fBounds = nullptr |
hints at layer size limit
Definition at line 740 of file SkCanvas.h.
const SkColorSpace* SkCanvas::SaveLayerRec::fColorSpace = nullptr |
If not null, this triggers a color space conversion when the layer is restored. It will be as if the layer's contents are drawn in this color space. Filters from fBackdrop and fPaint will be applied in this color space.
Definition at line 760 of file SkCanvas.h.
FilterSpan SkCanvas::SaveLayerRec::fFilters = {} |
Definition at line 745 of file SkCanvas.h.
const SkPaint* SkCanvas::SaveLayerRec::fPaint = nullptr |
modifies overlay
Definition at line 743 of file SkCanvas.h.
SaveLayerFlags SkCanvas::SaveLayerRec::fSaveLayerFlags = 0 |
preserves LCD text, creates with prior layer contents
Definition at line 763 of file SkCanvas.h.