Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(906)

Issue 5533074: Fixing the behavior of SkPathMeasure to reflect changes in SkPath::Iter. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by Stephen Chenney
Modified:
12 years, 8 months ago
Reviewers:
schenney, caryclark1, reed1
CC:
skia-review_googlegroups.com, bsalomon
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Fixing the behavior of SkPathMeasure to reflect changes in SkPath::Iter. This implementation modifies SkPath::Iter extensively to avoid copying the points when used to measure path length. BUG=446 TEST=tests/PathMeasureTest.cpp Committed: https://code.google.com/p/skia/source/detail?r=3062

Patch Set 1 #

Total comments: 15

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -63 lines) Patch
M include/core/SkPath.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M src/core/SkPathMeasure.cpp View 1 2 11 chunks +40 lines, -59 lines 0 comments Download
M tests/PathMeasureTest.cpp View 1 2 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 28
Stephen Chenney
http://codereview.appspot.com/5533074/diff/1/include/core/SkPath.h File include/core/SkPath.h (left): http://codereview.appspot.com/5533074/diff/1/include/core/SkPath.h#oldcode770 include/core/SkPath.h:770: friend const SkPoint* sk_get_path_points(const SkPath&, int index); No longer ...
12 years, 8 months ago (2012-01-11 22:43:14 UTC) #1
reed1
is this related http://codereview.appspot.com/5529074/
12 years, 8 months ago (2012-01-11 22:56:45 UTC) #2
schenney
On Wed, Jan 11, 2012 at 5:56 PM, <reed@google.com> wrote: > is this related http://codereview.appspot.com/**5529074/<http://codereview.appspot.com/5529074/> ...
12 years, 8 months ago (2012-01-11 23:04:33 UTC) #3
reed1
I was hoping to find a way to not require making a copy of all ...
12 years, 8 months ago (2012-01-12 13:03:48 UTC) #4
reed1
Perhaps we can land just the change to PathMeasureTest (disabled) so we can use to ...
12 years, 8 months ago (2012-01-12 13:05:33 UTC) #5
Stephen Chenney
On 2012/01/12 13:03:48, reed1 wrote: > I was hoping to find a way to not ...
12 years, 8 months ago (2012-01-12 14:31:12 UTC) #6
Stephen Chenney
On 2012/01/12 13:05:33, reed1 wrote: > Perhaps we can land just the change to PathMeasureTest ...
12 years, 8 months ago (2012-01-12 14:31:46 UTC) #7
Stephen Chenney
On 2012/01/12 14:31:46, Stephen Chenney wrote: > On 2012/01/12 13:05:33, reed1 wrote: > > Perhaps ...
12 years, 8 months ago (2012-01-12 15:15:17 UTC) #8
Stephen Chenney
A patch is up that avoids copying the pts array for use by SkPathMeasure. However, ...
12 years, 8 months ago (2012-01-13 00:17:58 UTC) #9
reed1
we you upload a rebaselined version, now that the inject CL has landed?
12 years, 8 months ago (2012-01-13 20:08:30 UTC) #10
Stephen Chenney
On 2012/01/13 20:08:30, reed1 wrote: > we you upload a rebaselined version, now that the ...
12 years, 8 months ago (2012-01-13 21:25:47 UTC) #11
reed1
wonder if this affects Iter perf at all. Brian has been concerned about this in ...
12 years, 8 months ago (2012-01-13 21:37:09 UTC) #12
reed1
can we make the two index* arguments to Iter::next() be required, so we can skip ...
12 years, 8 months ago (2012-01-13 21:38:55 UTC) #13
Stephen Chenney
On 2012/01/13 21:38:55, reed1 wrote: > can we make the two index* arguments to Iter::next() ...
12 years, 8 months ago (2012-01-13 21:42:02 UTC) #14
reed1
nit: don't use references for mutable parameters -- confuses the call site reader. asserts are ...
12 years, 8 months ago (2012-01-13 22:00:04 UTC) #15
Stephen Chenney
On 2012/01/13 22:00:04, reed1 wrote: > nit: don't use references for mutable parameters -- confuses ...
12 years, 8 months ago (2012-01-13 22:17:13 UTC) #16
reed1
I see a new private method plus making measure a friend, to get at next(index, ...
12 years, 8 months ago (2012-01-17 14:11:32 UTC) #17
Stephen Chenney
On 2012/01/17 14:11:32, reed1 wrote: > I see a new private method plus making measure ...
12 years, 8 months ago (2012-01-17 14:32:24 UTC) #18
Stephen Chenney
Let's back up a step. The correctness issue is with SkPathMeasure. SkPath::Iter is correct as ...
12 years, 8 months ago (2012-01-17 15:36:37 UTC) #19
reed1
Is the change that you're referring to, the removal of degenerate segments during Iter:next? If ...
12 years, 8 months ago (2012-01-17 16:27:29 UTC) #20
Stephen Chenney
On 2012/01/17 16:27:29, reed1 wrote: > Is the change that you're referring to, the removal ...
12 years, 8 months ago (2012-01-17 16:42:45 UTC) #21
reed1
comments on patch#1 http://codereview.appspot.com/5533074/diff/1/src/core/SkPathMeasure.cpp File src/core/SkPathMeasure.cpp (right): http://codereview.appspot.com/5533074/diff/1/src/core/SkPathMeasure.cpp#newcode189 src/core/SkPathMeasure.cpp:189: kMaxTValue, ptIndex); Why are we setting ...
12 years, 8 months ago (2012-01-17 17:01:13 UTC) #22
Stephen Chenney
Does the simplicity of this patch win out over the alternative? http://codereview.appspot.com/5533074/diff/1/src/core/SkPathMeasure.cpp File src/core/SkPathMeasure.cpp (right): ...
12 years, 8 months ago (2012-01-17 18:47:12 UTC) #23
reed1
On 2012/01/17 18:47:12, Stephen Chenney wrote: > Does the simplicity of this patch win out ...
12 years, 8 months ago (2012-01-17 18:57:50 UTC) #24
Stephen Chenney
I've addresses the issues Mike raised. Best to diff against Patch Set 1, or the ...
12 years, 8 months ago (2012-01-18 16:49:43 UTC) #25
reed1
lgtm
12 years, 8 months ago (2012-01-18 17:18:15 UTC) #26
Stephen Chenney
r3062
12 years, 8 months ago (2012-01-18 18:02:34 UTC) #27
Stephen Chenney
12 years, 8 months ago (2012-01-18 18:11:23 UTC) #28
And r3063 for a missing file.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b