Go to file
Robert Phillips 68408df01e Make a moveTo after an SkPath::addRRect invalidate the rrect-ness of the path
For posterity:

Prior to this CL, after we added a round rect to a path, the subsequent addition of moveTos didn't invalidate the 'round-rect-ness' of that path.
This caused trouble later when we tried to extract the RRect from the path.
The addition of the moveTos altered the bounds of the path (so the rect portion of the returned RRect was incorrect) and, bc the bounds were used to determine which corner each conic represented (to extract the radii), the extracted radii were incorrect.

To make this more concrete, here is the rrect that went in:
		fLeft	7.49565078e-27	float
		fTop	5.01922015e+33	float
		fRight	5.13968144e+36	float
		fBottom	5.02191391e+33	float
-	fRadii
+		[0]	{fX=0.000000000 fY=0.000000000 }	SkPoint
+		[1]	{fX=0.000000000 fY=0.000000000 }	SkPoint
+		[2]	{fX=1.92122573e+10 fY=10069.3330 }	SkPoint
+		[3]	{fX=0.000000000 fY=0.000000000 }	SkPoint

and here is the rrect that came out:

		fLeft	0.000000000	float
		fTop	0.000000000	float
		fRight	5.13968144e+36	float
		fBottom	5.02191391e+33	float
-	fRadii
+		[0]	{fX=0.000000000 fY=0.000000000 }	SkPoint
+		[1]	{fX=0.000000000 fY=0.000000000 }	SkPoint
+		[2]	{fX=0.000000000 fY=0.000000000 }	SkPoint
+		[3]	{fX=0.000000000 fY=0.000000000 }	SkPoint

where the additional moveTos all moved to (0.0f, 0.0f)

Change-Id: I8c98d83f8a483d14104f80ac4e22963949f19fe4
Reviewed-on: https://skia-review.googlesource.com/154629
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2018-09-17 13:23:59 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Specify CPU (buffer) and GPU (shader) types explicitly in Attribute 2018-09-14 21:54:03 +00:00
bin Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
dm encode F16/F32 .pngs as Rec2020 2018-09-13 15:43:02 +00:00
docker Fix container builder command line. 2018-09-12 18:44:59 +00:00
docs fix bookmaker 2018-09-13 19:31:27 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental [PathKit] Move from experimental to modules 2018-08-31 14:18:16 +00:00
fuzz Harden SerializedImageFilter fuzzer against filter creation failure 2018-09-14 16:18:22 +00:00
gm Specify CPU (buffer) and GPU (shader) types explicitly in Attribute 2018-09-14 21:54:03 +00:00
gn Remove all old gpu gradient code 2018-09-14 22:21:56 +00:00
include Specify CPU (buffer) and GPU (shader) types explicitly in Attribute 2018-09-14 21:54:03 +00:00
infra Update SKP version 2018-09-16 08:33:24 +00:00
modules [sksg] Trim down sksg::Matrix size 2018-09-12 15:28:18 +00:00
platform_tools [skottie] Plumb external SkFontMgr 2018-08-23 13:13:30 +00:00
resources Reland "Switch SkCodec to use skcms plus fixes"" 2018-08-27 16:16:14 +00:00
samplecode Revert "makeSurface defaults to raster" 2018-09-05 18:41:45 +00:00
site fix bookmaker 2018-09-13 19:31:27 +00:00
src Make a moveTo after an SkPath::addRRect invalidate the rrect-ness of the path 2018-09-17 13:23:59 +00:00
tests don't try to extract or blur a zero-sized bitmap 2018-09-15 16:33:33 +00:00
third_party Roll skia/third_party/skcms 710aa46f904e..b9dc92669da2 (1 commits) 2018-09-12 20:59:40 +00:00
tools fix error reporting for doc examples 2018-09-14 13:34:16 +00:00
.clang-format Update .clang-format to handle Objective-C files 2018-07-27 21:33:30 +00:00
.gitignore Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn [skottie] Enable skotte_tool on Mac builds 2018-09-02 16:54:52 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll third_party/externals/angle2 62114aae8550..017bda429667 (1 commits) 2018-09-17 10:12:19 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Add new autoroll service accounts to AUTHORS check bypass 2018-09-07 18:49:23 +00:00
public.bzl Reland "Base Gradient FP Refactor" 2018-09-12 20:20:32 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Whitespace change to trigger flutter roller 2018-06-22 01:18:46 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.