diff --git a/site/user/api/SkPaint_Reference.md b/site/user/api/SkPaint_Reference.md index f9df8fd384..587eeb2e05 100644 --- a/site/user/api/SkPaint_Reference.md +++ b/site/user/api/SkPaint_Reference.md @@ -143,7 +143,6 @@ Multiple colors are drawn either by using multiple paints or with objects like | containsText | returns if all text corresponds to Glyphs | | countText | returns number of Glyphs in text | | doComputeFastBounds | returns bounds for quick reject tests | -| flatten | serializes into a buffer | | getAlpha | returns Color Alpha, color opacity | | getBlendMode | returns Blend Mode, how colors combine with Device | | getColor | returns Color Alpha and Color RGB, one drawing color | @@ -237,7 +236,6 @@ Multiple colors are drawn either by using multiple paints or with objects like | setVerticalText | sets or clears Vertical Text | | textToGlyphs | converts text into glyph indices | | toString | converts Paint to machine readable form | -| unflatten | populates from a serialized stream | ## Initializers @@ -610,55 +608,6 @@ paint1.getHash() == paint2.getHash() --- - -## flatten - -
-void flatten(SkWriteBuffer& buffer) const
-
- -Serializes Paint into a buffer. A companion unflatten call -can reconstitute the paint at a later time. - -### Parameters - - - -
buffer -Write Buffer receiving the flattened Paint data
- ---- - - -## unflatten - -
-bool unflatten(SkReadBuffer& buffer)
-
- -Populates Paint, typically from a serialized stream, created by calling -flatten at an earlier time. - -SkReadBuffer class is not public, so unflatten cannot be meaningfully called -by the client. - -### Parameters - - - -
buffer -serialized data describing Paint content
- -### Return Value - -false if the buffer contains invalid data - -### See Also - -SkReadBuffer - ---- - ## Hinting ## Enum SkPaint::Hinting