From 99ebc428b88ce74e278cecf269b88302e0271c34 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 11 Sep 2018 15:26:53 -0400 Subject: [PATCH] fixup bookmaker add placeholders for SkPath::shrinkToFit, debugging_private_getFreeSpace TBR=fmalita@chromium.org,reed@google.com NOTRY=true Docs-Preview: https://skia.org/?cl=153669 Bug: skia: Change-Id: I69b34a37dcdd7425e62d34e3b9a55981db354502 Reviewed-on: https://skia-review.googlesource.com/153669 Auto-Submit: Cary Clark Commit-Queue: Cary Clark Commit-Queue: Florin Malita Reviewed-by: Florin Malita Reviewed-by: Cary Clark --- docs/SkPath_Reference.bmh | 15 +++++++++++ site/user/api/SkPath_Reference.md | 44 +++++++++++++++++++++++++++---- 2 files changed, 54 insertions(+), 5 deletions(-) diff --git a/docs/SkPath_Reference.bmh b/docs/SkPath_Reference.bmh index 23736fb5af..d229683976 100644 --- a/docs/SkPath_Reference.bmh +++ b/docs/SkPath_Reference.bmh @@ -2117,6 +2117,17 @@ void draw(SkCanvas* canvas) { ## +#Method void shrinkToFit() +#In Utility +#Line # removes unused reserved space ## + +Removes unused space in Path Verb_Array and Point_Array. + +#NoExample +## +#SeeAlso incReserve +## + # ------------------------------------------------------------------------------ #Subtopic Build #Populate @@ -5373,6 +5384,10 @@ empty genID = 1 #Deprecated soon ## +#Method size_t debugging_private_getFreeSpace() const +#Experimental +## + # ------------------------------------------------------------------------------ #Class Iter diff --git a/site/user/api/SkPath_Reference.md b/site/user/api/SkPath_Reference.md index 7e2d6d1650..5d3869119e 100644 --- a/site/user/api/SkPath_Reference.md +++ b/site/user/api/SkPath_Reference.md @@ -707,22 +707,26 @@ SkPath member functions read and modify the structure properties. replaces Last Point + shrinkToFit + removes unused reserved space + + swap exchanges Path pair - + toggleInverseFillType toggles Fill Type between inside and outside geometry - + transform applies Matrix to Point Array and Weights - + updateBoundsCache refreshes result of getBounds - + writeToMemory copies data to buffer @@ -2580,10 +2584,14 @@ rotated circle bounds = 14.6447, 9.64466, 85.3553, 80.3553 setLastPt(SkScalar x, SkScalar y) + shrinkToFit + removes unused reserved space + + updateBoundsCache refreshes result of getBounds - + writeToMemory copies data to buffer @@ -2733,6 +2741,21 @@ reducing the number and size of allocations when creating Path +## shrinkToFit + +
+void shrinkToFit()
+
+ +Removes unused space in Path Verb Array and Point Array. + +### See Also + +incReserve + +--- + ## Build @@ -5932,6 +5955,17 @@ To be deprecated soon. --- + +## debugging_private_getFreeSpace + +
+size_t debugging private getFreeSpace() const
+
+ +Experimental. + +--- + # Class SkPath::Iter ## Constructor