From 4ce53a6ffd3caa1da68d9d9c42d848cbb06f69fb Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 13 Mar 2018 08:29:05 -0400 Subject: [PATCH] remove paint flatten unflatten from generated docs No-Try: true Docs-Preview: https://skia.org/?cl=114014 Bug: skia:6898 Change-Id: Ic53e3b9041576888a1d533cd9ef0f575e35cb0bc Reviewed-on: https://skia-review.googlesource.com/114014 Commit-Queue: Cary Clark Reviewed-by: Cary Clark --- site/user/api/SkPaint_Reference.md | 51 ------------------------------ 1 file changed, 51 deletions(-) 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