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:
Mike Reed 2019-02-22 08:31:36 -05:00 committed by Skia Commit-Bot
parent 1ba9c4df77
commit aa76bc1388
2 changed files with 17 additions and 7 deletions

View File

@ -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

View File

@ -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 */