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

Issue 6012047: track oval in SkPath (Closed)

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

Description

track oval in SkPath This CL is separated from the big CL (circle drawing via GPU shader). There are some changes: - use SkBool8 instead of bool. - add isOval() interface to check whether it's an oval. This interface returns the bounding rect. - add detailed comments for isOval() and field fIsOval. BUG= TEST=

Patch Set 1 #

Patch Set 2 : a rotated circle whose angle is not a mutiple of 90 degrees is not an oval. #

Total comments: 3

Patch Set 3 : comment fix and typo fix per Brian #

Patch Set 4 : name fix #

Total comments: 2

Patch Set 5 : update #

Patch Set 6 : add a new test case #

Patch Set 7 : fix the fixed build failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -0 lines) Patch
M include/core/SkPath.h View 1 2 3 4 3 chunks +17 lines, -0 lines 0 comments Download
M src/core/SkPath.cpp View 1 2 3 4 5 6 15 chunks +70 lines, -0 lines 0 comments Download
M tests/PathTest.cpp View 1 2 3 4 5 6 2 chunks +192 lines, -0 lines 0 comments Download

Messages

Total messages: 11
guanqun
please review. thanks!
12 years, 9 months ago (2012-04-12 06:53:56 UTC) #1
bsalomon
On 2012/04/12 06:53:56, guanqun wrote: > please review. thanks! It mostly looks good, I have ...
12 years, 9 months ago (2012-04-16 14:16:15 UTC) #2
bsalomon
http://codereview.appspot.com/6012047/diff/2001/include/core/SkPath.h File include/core/SkPath.h (right): http://codereview.appspot.com/6012047/diff/2001/include/core/SkPath.h#newcode164 include/core/SkPath.h:164: /** Returns true if the path is an oval ...
12 years, 9 months ago (2012-04-16 14:16:22 UTC) #3
guanqun.lu_gmail.com
Comment updated and changed SkAutoDisableCircleCheck to SkAutoDisableOvalCheck (nice catch!) -- Guanqun
12 years, 9 months ago (2012-04-16 15:57:53 UTC) #4
reed1
getting close. Can we default to fIsOval being false? That feels better to me. What ...
12 years, 9 months ago (2012-04-16 19:19:29 UTC) #5
guanqun
Making fIsOval default to true was a little optimization derived from my first patch, otherwise, ...
12 years, 9 months ago (2012-04-17 00:38:40 UTC) #6
guanqun
On 2012/04/17 00:38:40, guanqun wrote: > In this new patch, it can be default to ...
12 years, 9 months ago (2012-04-17 00:41:28 UTC) #7
reed1
lgtm
12 years, 9 months ago (2012-04-17 12:26:56 UTC) #8
bsalomon
On 2012/04/17 12:26:56, reed1 wrote: > lgtm I committed this as r3705 but then reverted ...
12 years, 9 months ago (2012-04-17 15:39:03 UTC) #9
guanqun
So embarrassed. :( It's due to the fact I'm not wrapping number 30 by SkIntToScalar(). ...
12 years, 9 months ago (2012-04-18 01:26:59 UTC) #10
bsalomon
12 years, 9 months ago (2012-04-18 13:30:13 UTC) #11
Relanded at r3716.

On 2012/04/18 01:26:59, guanqun wrote:
> So embarrassed. :(
> 
> It's due to the fact I'm not wrapping number 30 by SkIntToScalar(). Fixed the
> tests. It won't cause the failure now. I've tested it on x86_64 Linux
platform,
> both float and fixed build.

That mistake has been made many times before :)

> 
> Sorry for the trouble...
> 
> BTW: Do we have some try bots that I can run the patch on different platforms?
> Something like WebKit does.

We don't currently have try bots but we hope to have them come online sometime
in June.

> 
> Thanks!
Sign in to reply to this message.

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