And I would suggest getting http://codereview.appspot.com/5533074/ in first as it has a bit more testing. ...
13 years, 7 months ago
(2012-01-11 23:14:46 UTC)
#4
And I would suggest getting http://codereview.appspot.com/5533074/ in first as
it has a bit more testing.
(I wish these patches didn't both end in 074).
This seems to pass everything, but fails in PathTests.cpp : test_raw_iter. I am wondering if ...
13 years, 7 months ago
(2012-01-12 16:33:04 UTC)
#5
This seems to pass everything, but fails in PathTests.cpp : test_raw_iter. I am
wondering if the test just needs to be modified? I find that test rather dense,
perhaps it can be restructured to make clearer its assumptions/organization? Of
course, perhaps I still have a bug and the test is correct, I just can't tell
yet.
I patched this in and got all the kinks sorted out (there were several). Unfortunately, ...
13 years, 7 months ago
(2012-01-12 16:38:25 UTC)
#6
I patched this in and got all the kinks sorted out (there were several).
Unfortunately, now it's all mingled in with my fixes for SkPathMeasure and not
easy to upload a patch. I think I may need to commit it along with the fix for
SkPathMeasure.
http://codereview.appspot.com/5529074/diff/1/src/core/SkPath.cpp
File src/core/SkPath.cpp (right):
http://codereview.appspot.com/5529074/diff/1/src/core/SkPath.cpp#newcode545
src/core/SkPath.cpp:545: fLastMoveToIndex ^= fLastMoveToIndex >> (8 *
sizeof(fLastMoveToIndex) - 1);
On 2012/01/11 23:13:25, Stephen Chenney wrote:
> Is this just a non-branching way of doing what you want? Very cute, and I hope
> you ran it through all the tests.
This in fact fails for the case when the fLastMoveToIndex is 0.
On 2012/01/12 16:33:04, reed1 wrote: > This seems to pass everything, but fails in PathTests.cpp ...
13 years, 7 months ago
(2012-01-12 16:39:38 UTC)
#7
On 2012/01/12 16:33:04, reed1 wrote:
> This seems to pass everything, but fails in PathTests.cpp : test_raw_iter. I
am
> wondering if the test just needs to be modified? I find that test rather
dense,
> perhaps it can be restructured to make clearer its assumptions/organization?
Of
> course, perhaps I still have a bug and the test is correct, I just can't tell
> yet.
The test needed updating - if the new code adds in additional moves then the raw
iterator will return those. The test was not accounting for it.
This revision has an updated PathTest that passes. I'll file a separate bug to address ...
13 years, 7 months ago
(2012-01-12 16:47:30 UTC)
#8
This revision has an updated PathTest that passes.
I'll file a separate bug to address test_raw_iter, and make it cleaner (not so
many magic literals everywhere, etc.)
actually, I don't understand the other comments per-se. How can I remove const_moveto from the ...
13 years, 7 months ago
(2012-01-12 18:22:18 UTC)
#12
actually, I don't understand the other comments per-se. How can I remove
const_moveto from the header but not remove it from the .cpp? Can you propose a
CL with those cleanups?
On 2012/01/12 18:22:18, reed1 wrote: > actually, I don't understand the other comments per-se. How ...
13 years, 7 months ago
(2012-01-12 18:25:02 UTC)
#13
On 2012/01/12 18:22:18, reed1 wrote:
> actually, I don't understand the other comments per-se. How can I remove
> const_moveto from the header but not remove it from the .cpp? Can you propose
a
> CL with those cleanups?
Sure. Will do once this is in.
Issue 5529074: inject moveTo after close (when needed)
(Closed)
Created 13 years, 7 months ago by reed1
Modified 13 years, 7 months ago
Reviewers: Stephen Chenney
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 8