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

Issue 5509050: The units used to setup XPS should be SkScalars. (Closed)

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

Patch Set 1 #

Patch Set 2 : Fix line length issues. #

Total comments: 6

Patch Set 3 : int * scalar does the right thing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
M gm/gmmain.cpp View 1 2 1 chunk +6 lines, -7 lines 0 comments Download

Messages

Total messages: 8
bungeman
The sight of bare doubles, even in GM code, is a blight upon the purity ...
12 years, 8 months ago (2012-01-04 22:54:49 UTC) #1
epoger
http://codereview.appspot.com/5509050/diff/2001/gm/gmmain.cpp File gm/gmmain.cpp (right): http://codereview.appspot.com/5509050/diff/2001/gm/gmmain.cpp#newcode327 gm/gmmain.cpp:327: static const SkScalar inchesPerMeter = SkScalarDiv(SkIntToScalar(10000), I'm not sure ...
12 years, 8 months ago (2012-01-04 23:44:26 UTC) #2
reed1
I agree that I don't see any functional improvement. Skia does have the notion of ...
12 years, 8 months ago (2012-01-05 13:26:46 UTC) #3
bungeman
My reasons for having made this CL in the first place. http://codereview.appspot.com/5509050/diff/2001/gm/gmmain.cpp File gm/gmmain.cpp (right): ...
12 years, 8 months ago (2012-01-05 15:26:05 UTC) #4
reed1
http://codereview.appspot.com/5509050/diff/2001/gm/gmmain.cpp File gm/gmmain.cpp (right): http://codereview.appspot.com/5509050/diff/2001/gm/gmmain.cpp#newcode329 gm/gmmain.cpp:329: static const SkScalar upm = SkScalarMul(SkIntToScalar(72), inchesPerMeter); equivalent to ...
12 years, 8 months ago (2012-01-05 15:53:26 UTC) #5
bungeman
http://codereview.appspot.com/5509050/diff/2001/gm/gmmain.cpp File gm/gmmain.cpp (right): http://codereview.appspot.com/5509050/diff/2001/gm/gmmain.cpp#newcode329 gm/gmmain.cpp:329: static const SkScalar upm = SkScalarMul(SkIntToScalar(72), inchesPerMeter); On 2012/01/05 ...
12 years, 8 months ago (2012-01-05 15:59:17 UTC) #6
epoger
LGTM I'm fine with either the old way or the new way...
12 years, 8 months ago (2012-01-05 16:14:35 UTC) #7
bungeman
12 years, 8 months ago (2012-01-05 16:57:03 UTC) #8
Committed revision 2968.
Sign in to reply to this message.

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