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

Issue 4807052: Add isRect to SkPath (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by caryclark1
Modified:
13 years, 3 months ago
Reviewers:
reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Read path directly without using Iter. #

Patch Set 3 : Add future enhancement comments. #

Total comments: 4

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -6 lines) Patch
M src/core/SkPath.cpp View 1 2 3 1 chunk +112 lines, -3 lines 0 comments Download
M tests/PathTest.cpp View 3 chunks +130 lines, -3 lines 0 comments Download

Messages

Total messages: 7
caryclark1
13 years, 3 months ago (2011-07-26 18:19:22 UTC) #1
caryclark1
13 years, 3 months ago (2011-07-26 18:20:01 UTC) #2
reed1
LGTM Not important, but 1. we could detect collinear quads and cubics, and fall through ...
13 years, 3 months ago (2011-07-26 19:10:13 UTC) #3
caryclark1
this version doesn't use SkPath::Iter
13 years, 3 months ago (2011-07-26 19:31:30 UTC) #4
reed1
LGTM http://codereview.appspot.com/4807052/diff/8001/src/core/SkPath.cpp File src/core/SkPath.cpp (left): http://codereview.appspot.com/4807052/diff/8001/src/core/SkPath.cpp#oldcode193 src/core/SkPath.cpp:193: return false; don't need iter http://codereview.appspot.com/4807052/diff/8001/src/core/SkPath.cpp File src/core/SkPath.cpp ...
13 years, 3 months ago (2011-07-26 19:41:29 UTC) #5
caryclark1
http://codereview.appspot.com/4807052/diff/8001/src/core/SkPath.cpp File src/core/SkPath.cpp (left): http://codereview.appspot.com/4807052/diff/8001/src/core/SkPath.cpp#oldcode193 src/core/SkPath.cpp:193: return false; On 2011/07/26 19:41:29, reed1 wrote: > don't ...
13 years, 3 months ago (2011-07-26 19:48:50 UTC) #6
caryclark1
13 years, 3 months ago (2011-07-26 19:49:34 UTC) #7
http://codereview.appspot.com/4807052/diff/1/src/core/SkPath.cpp
File src/core/SkPath.cpp (right):

http://codereview.appspot.com/4807052/diff/1/src/core/SkPath.cpp#newcode286
src/core/SkPath.cpp:286: // Success if 4 corners and first point equals last
On 2011/07/26 19:10:13, reed1 wrote:
> I think first == last will work for SkPoints.

Done.
Sign in to reply to this message.

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