aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorFlorin Malita <fmalita@chromium.org>2018-09-11 16:16:19 -0400
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2018-09-11 20:43:22 +0000
commit0e0f1a71da39f83a6c5814d28f416e06da282501 (patch)
tree021b0998beae3a974d96e3df5ed54ece1d37a406 /site
parent90c7d9b10ec39822701e453f007c3a39c1fd0c07 (diff)
downloadskqp-0e0f1a71da39f83a6c5814d28f416e06da282501.tar.gz
SkPath::shrinkToFit docs
Add header and .bmh docs for shrinkToFit(). Also remove SkPath::debugging_private_getFreeSpace() and refactor tests to use (friended) helper classes. Docs-Preview: https://skia.org/?cl=153668 Change-Id: I3f93f9561b25025ce04a81d5e2f0271295b3daad Reviewed-on: https://skia-review.googlesource.com/153668 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'site')
-rw-r--r--site/user/api/SkPath_Reference.md14
1 files changed, 2 insertions, 12 deletions
diff --git a/site/user/api/SkPath_Reference.md b/site/user/api/SkPath_Reference.md
index 5d3869119e..d9c87536fa 100644
--- a/site/user/api/SkPath_Reference.md
+++ b/site/user/api/SkPath_Reference.md
@@ -2748,7 +2748,8 @@ reducing the number and size of allocations when creating <a href='#Path'>Path</
void <a href='#SkPath_shrinkToFit'>shrinkToFit</a>()
</pre>
-Removes unused space in <a href='#Path'>Path</a> <a href='#Verb_Array'>Verb Array</a> and <a href='#Point_Array'>Point Array</a>.
+Shrinks <a href='#Path'>Path</a> <a href='#Verb_Array'>Verb Array</a> and <a href='#Point_Array'>Point Array</a> storage to discard unused capacity.
+May reduce the heap overhead for <a href='#Path'>Paths</a> known to be fully constructed.
### See Also
@@ -5955,17 +5956,6 @@ To be deprecated soon.
---
-<a name='SkPath_debugging_private_getFreeSpace'></a>
-## debugging_private_getFreeSpace
-
-<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
-size_t <a href='#SkPath_debugging_private_getFreeSpace'>debugging private getFreeSpace</a>() const
-</pre>
-
-Experimental.
-
----
-
# <a name='SkPath_Iter'>Class SkPath::Iter</a>
## <a name='Constructor'>Constructor</a>