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

Issue 3466042: Upstream mulDiv255Ceil() from webkit skia/ImageBuffer.cpp to skia

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

Description

http://code.google.com/p/skia/issues/detail?id=88 upstream mulDiv255Ceil() from WebKit to the skia repository.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added test case test_muldiv255ceiling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -0 lines) Patch
include/core/SkMath.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
tests/MathTest.cpp View 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 10
noel
13 years, 11 months ago (2010-12-06 11:15:12 UTC) #1
noel
13 years, 11 months ago (2010-12-06 11:16:20 UTC) #2
Stephen White
http://codereview.appspot.com/3466042/diff/1/include/core/SkMath.h File include/core/SkMath.h (right): http://codereview.appspot.com/3466042/diff/1/include/core/SkMath.h#newcode222 include/core/SkMath.h:222: unsigned prod = SkMulS16(a, b) + 255; This only ...
13 years, 11 months ago (2010-12-06 18:46:50 UTC) #3
noel
The "unsigned prod = SkMulS16(a, b) + 255" produces "a * b + 255", and ...
13 years, 11 months ago (2010-12-06 22:19:21 UTC) #4
Stephen White
LGTM. On 2010/12/06 22:19:21, noel wrote: > The "unsigned prod = SkMulS16(a, b) + 255" ...
13 years, 11 months ago (2010-12-06 22:41:21 UTC) #5
noel
confusion reigns though, should the addition factor be 254? On Tue, Dec 7, 2010 at ...
13 years, 11 months ago (2010-12-06 23:10:46 UTC) #6
Stephen White
On 2010/12/06 23:10:46, noel wrote: > confusion reigns though, should the addition factor be 254? ...
13 years, 11 months ago (2010-12-06 23:25:43 UTC) #7
noel1
awesome, thx for checking, we go with 255.
13 years, 11 months ago (2010-12-07 00:02:30 UTC) #8
noel1
Also, can you take ownership of http://code.google.com/p/skia/issues/detail?id=88 and close when you submit the change?
13 years, 11 months ago (2010-12-07 00:12:47 UTC) #9
noel
13 years, 11 months ago (2010-12-07 07:58:12 UTC) #10
Added test case test_muldiv255ceiling
Sign in to reply to this message.

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