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