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

Issue 4993041: Improve gpu path subdiv with perspective, remove tolerance scale, fix comment (Closed)

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

Patch Set 1 #

Total comments: 1

Patch Set 2 : cleanup #

Patch Set 3 : use enum val for matrix element 8 #

Patch Set 4 : more enum #

Total comments: 5

Patch Set 5 : Use SkFractDiv #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -80 lines) Patch
M gpu/src/GrContext.cpp View 2 chunks +0 lines, -9 lines 0 comments Download
M gpu/src/GrDefaultPathRenderer.cpp View 1 chunk +2 lines, -11 lines 0 comments Download
M gpu/src/GrPathRenderer.h View 3 chunks +2 lines, -13 lines 0 comments Download
M gpu/src/GrPathRenderer.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M gpu/src/GrPathUtils.h View 1 chunk +25 lines, -24 lines 0 comments Download
M gpu/src/GrPathUtils.cpp View 1 1 chunk +18 lines, -1 line 0 comments Download
M gpu/src/GrTesselatedPathRenderer.cpp View 1 chunk +2 lines, -11 lines 0 comments Download
M include/core/SkMatrix.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M samplecode/SampleHairCurves.cpp View 2 chunks +6 lines, -0 lines 0 comments Download
M src/core/SkMatrix.cpp View 1 2 3 4 3 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 7
bsalomon
Tom and I convinced ourselves that it isn't correct to scale the tolerance when using ...
12 years, 9 months ago (2011-09-07 15:39:32 UTC) #1
bsalomon
hello
12 years, 9 months ago (2011-09-07 17:56:46 UTC) #2
reed1
http://codereview.appspot.com/4993041/diff/6001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): http://codereview.appspot.com/4993041/diff/6001/src/core/SkMatrix.cpp#newcode1717 src/core/SkMatrix.cpp:1717: stretch = SkFixedDiv(stretch, SkFractToFixed(fMat[kMPersp2])); SkFractDiv is better, as it ...
12 years, 9 months ago (2011-09-07 18:01:34 UTC) #3
bsalomon
http://codereview.appspot.com/4993041/diff/6001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): http://codereview.appspot.com/4993041/diff/6001/src/core/SkMatrix.cpp#newcode1717 src/core/SkMatrix.cpp:1717: stretch = SkFixedDiv(stretch, SkFractToFixed(fMat[kMPersp2])); On 2011/09/07 18:01:34, reed1 wrote: ...
12 years, 9 months ago (2011-09-07 18:20:30 UTC) #4
reed1
LGTM
12 years, 9 months ago (2011-09-07 18:20:56 UTC) #5
TomH
LGTM. Curiosity compels questions: http://codereview.appspot.com/4993041/diff/6001/gpu/src/GrDefaultPathRenderer.cpp File gpu/src/GrDefaultPathRenderer.cpp (right): http://codereview.appspot.com/4993041/diff/6001/gpu/src/GrDefaultPathRenderer.cpp#newcode378 gpu/src/GrDefaultPathRenderer.cpp:378: tol = GrPathUtils::scaleToleranceToSrc(tol, viewM); Yay. ...
12 years, 9 months ago (2011-09-07 18:31:24 UTC) #6
bsalomon
12 years, 9 months ago (2011-09-07 18:39:23 UTC) #7
On 2011/09/07 18:31:24, TomH wrote:
>
http://codereview.appspot.com/4993041/diff/6001/gpu/src/GrPathUtils.cpp#newco...
> gpu/src/GrPathUtils.cpp:23: srcTol /= 5;
> Changed from /10 to /5 - is this arbitrary?
Very :) We'd really have to consider the path bounds projected into dst space
and compute the largest zoom factor in that domain.

>
http://codereview.appspot.com/4993041/diff/6001/gpu/src/GrPathUtils.h#newcode21
> gpu/src/GrPathUtils.h:21: namespace GrPathUtils {
> Why desingletonize?
Just converted from class-being-used-as-a-namespace to an actual namespace.
Sign in to reply to this message.

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