aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu
diff options
context:
space:
mode:
authorGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-17 18:29:26 +0000
committerGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-17 18:29:26 +0000
commit5793a1ff40bc02435f803d7e60c9551ea8688501 (patch)
tree7425a266aaa52a8856089b8dbbf188be915a23f7 /gpu
parentbb7f076c0c72ea7c70e75674d3aa07b3acb645d4 (diff)
Pass forceClose "true" to SkPath::Iter constructor in
GrPathUtils::worstCasePointCount(). worstCasePointCount() is sometimes returning a lower value than the number of points subsequently generated by the path renderers. This is because it constructs the SkPath::Iter with forceClose set to "false", while the path renderers use one with forceClose set to "true". They should both be the same, and since we're filling paths, I think it should be set "true". Review URL: http://codereview.appspot.com/4552047/ git-svn-id: http://skia.googlecode.com/svn/trunk@1353 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu')
-rw-r--r--gpu/src/GrPathUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/src/GrPathUtils.cpp b/gpu/src/GrPathUtils.cpp
index 1fb043c83f..8a72ba87a7 100644
--- a/gpu/src/GrPathUtils.cpp
+++ b/gpu/src/GrPathUtils.cpp
@@ -111,7 +111,7 @@ int GrPathUtils::worstCasePointCount(const GrPath& path, int* subpaths,
bool first = true;
- SkPath::Iter iter(path, false);
+ SkPath::Iter iter(path, true);
GrPathCmd cmd;
GrPoint pts[4];