update docs for backdrop
Bug: skia: Change-Id: Ic3f7ad4b730d6aa616ec75dd6179d96327716b59 Reviewed-on: https://skia-review.googlesource.com/c/194003 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
parent
1ba9c4df77
commit
aa76bc1388
@ -1304,9 +1304,9 @@ SaveLayerRec contains the state used to create the Layer.
|
||||
|
||||
#Member const SkImageFilter* fBackdrop
|
||||
#Line # applies Image_Filter to prior Layer ##
|
||||
fBackdrop applies Image_Filter to the prior Layer when copying to the Layer;
|
||||
may be nullptr. Use kInitWithPrevious_SaveLayerFlag to copy the
|
||||
prior Layer without an Image_Filter.
|
||||
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).
|
||||
##
|
||||
|
||||
#Member const SkImage* fClipMask
|
||||
|
@ -614,7 +614,10 @@ public:
|
||||
@param bounds layer dimensions; may be nullptr
|
||||
@param paint applied to layer when overlaying prior layer;
|
||||
may be nullptr
|
||||
@param backdrop prior layer copied with SkImageFilter; may be nullptr
|
||||
@param 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.
|
||||
@param saveLayerFlags SaveLayerRec options to modify layer
|
||||
@return SaveLayerRec fully specified
|
||||
*/
|
||||
@ -636,8 +639,10 @@ public:
|
||||
@param bounds layer dimensions; may be nullptr
|
||||
@param paint graphics state applied to layer when overlaying prior
|
||||
layer; may be nullptr
|
||||
@param backdrop prior layer copied with SkImageFilter;
|
||||
may be nullptr
|
||||
@param 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.
|
||||
@param clipMask clip applied to layer; may be nullptr
|
||||
@param clipMatrix matrix applied to clipMask; may be nullptr to use
|
||||
identity matrix
|
||||
@ -661,7 +666,12 @@ public:
|
||||
/** modifies overlay */
|
||||
const SkPaint* fPaint = nullptr;
|
||||
|
||||
/** applies SkImageFilter to prior layer */
|
||||
/**
|
||||
* 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).
|
||||
*/
|
||||
const SkImageFilter* fBackdrop = nullptr;
|
||||
|
||||
/** clips layer with mask alpha */
|
||||
|
Loading…
Reference in New Issue
Block a user