From c06754b0466e14e1611fa3144bf337289e6ca82f Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 16 May 2018 21:28:55 -0400 Subject: mapRect should not fiddle with nonfinite values. Docs-Preview: https://skia.org/?cl=128682 Bug: skia:7967 Change-Id: Ic43387b7705ee8385b8df2430886484ff856077c Reviewed-on: https://skia-review.googlesource.com/128682 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- docs/SkMatrix_Reference.bmh | 16 ++++++++++++++++ docs/SkRect_Reference.bmh | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) (limited to 'docs') diff --git a/docs/SkMatrix_Reference.bmh b/docs/SkMatrix_Reference.bmh index b079cb5632..8cd86bcd3d 100644 --- a/docs/SkMatrix_Reference.bmh +++ b/docs/SkMatrix_Reference.bmh @@ -3712,6 +3712,22 @@ Returned value is the same as calling rectStaysRect. # ------------------------------------------------------------------------------ +#Method SkRect mapRect(const SkRect& src) const + +Returns bounds of src corners mapped by Matrix. + +#Param src rectangle to map ## +#Return mapped bounds ## + +#Example +// incomplete +## + +#SeeAlso incomplete +#Method ## + +# ------------------------------------------------------------------------------ + #Method void mapRectToQuad(SkPoint dst[4], const SkRect& rect) const #In Transform #Line # maps Rect to Point array ## diff --git a/docs/SkRect_Reference.bmh b/docs/SkRect_Reference.bmh index 73225fcc88..2adfecf5bc 100644 --- a/docs/SkRect_Reference.bmh +++ b/docs/SkRect_Reference.bmh @@ -901,6 +901,24 @@ added: nan, 8 count: 4 rect: 0, 0, 0, 0 success: false # ------------------------------------------------------------------------------ +#Method void setBoundsNoCheck(const SkPoint pts[], int count) +#In Set +#Line # sets to upper and lower limits of Point array ## +Sets to bounds of Point array with count entries. If any point contains a non-finite value +then the rect will also be non-finite. + +#Param pts Point array ## +#Param count entries in array ## + +#Example +// incomplete +## + +#SeeAlso setBoundsCheck +#Method ## + +# ------------------------------------------------------------------------------ + #Method void setEmpty() #In Set -- cgit v1.2.3