Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Issue 645793006: add round/ceil/etc. for SkMScalar (Closed)

Created:
6 years, 2 months ago by reed1
Modified:
6 years, 2 months ago
Reviewers:
Peter Kasting
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

add round/ceil/etc. for SkMScalar BUG=skia: TBR= Committed: https://skia.googlesource.com/skia/+/39393e3ac309d4bedbc18bae98d3ebcb762501dd

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : add SkIntToMScalar #

Total comments: 2

Patch Set 4 : add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -2 lines) Patch
M include/core/SkFloatingPoint.h View 1 chunk +7 lines, -0 lines 0 comments Download
M include/utils/SkMatrix44.h View 1 2 3 2 chunks +23 lines, -2 lines 0 comments Download
M tests/Matrix44Test.cpp View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
reed1
6 years, 2 months ago (2014-10-21 18:50:51 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645793006/20001
6 years, 2 months ago (2014-10-21 18:52:01 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 2 months ago (2014-10-21 18:52:02 UTC) #5
Peter Kasting
Can we also add an SkIntToMScalar? https://codereview.chromium.org/645793006/diff/20001/include/core/SkFloatingPoint.h File include/core/SkFloatingPoint.h (right): https://codereview.chromium.org/645793006/diff/20001/include/core/SkFloatingPoint.h#newcode120 include/core/SkFloatingPoint.h:120: #define sk_double_round(x) floor((x) ...
6 years, 2 months ago (2014-10-21 18:56:09 UTC) #6
reed1
On 2014/10/21 18:56:09, Peter Kasting wrote: > Can we also add an SkIntToMScalar? > > ...
6 years, 2 months ago (2014-10-21 19:08:01 UTC) #7
reed1
https://codereview.chromium.org/645793006/diff/20001/include/core/SkFloatingPoint.h File include/core/SkFloatingPoint.h (right): https://codereview.chromium.org/645793006/diff/20001/include/core/SkFloatingPoint.h#newcode120 include/core/SkFloatingPoint.h:120: #define sk_double_round(x) floor((x) + 0.5) On 2014/10/21 18:56:09, Peter ...
6 years, 2 months ago (2014-10-21 19:08:08 UTC) #8
reed1
https://codereview.chromium.org/645793006/diff/20001/tests/Matrix44Test.cpp File tests/Matrix44Test.cpp (right): https://codereview.chromium.org/645793006/diff/20001/tests/Matrix44Test.cpp#newcode764 tests/Matrix44Test.cpp:764: // just want to exercise the various converters for ...
6 years, 2 months ago (2014-10-21 19:10:41 UTC) #9
Peter Kasting
https://codereview.chromium.org/645793006/diff/40001/include/utils/SkMatrix44.h File include/utils/SkMatrix44.h (right): https://codereview.chromium.org/645793006/diff/40001/include/utils/SkMatrix44.h#newcode79 include/utils/SkMatrix44.h:79: #define SkIntToMScalar(n) ((SkMScalar)(n)) Why not static_cast instead of C-style ...
6 years, 2 months ago (2014-10-21 19:13:01 UTC) #10
reed1
https://codereview.chromium.org/645793006/diff/40001/include/utils/SkMatrix44.h File include/utils/SkMatrix44.h (right): https://codereview.chromium.org/645793006/diff/40001/include/utils/SkMatrix44.h#newcode79 include/utils/SkMatrix44.h:79: #define SkIntToMScalar(n) ((SkMScalar)(n)) On 2014/10/21 19:13:01, Peter Kasting wrote: ...
6 years, 2 months ago (2014-10-21 19:17:58 UTC) #11
Peter Kasting
LGTM
6 years, 2 months ago (2014-10-21 19:22:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645793006/60001
6 years, 2 months ago (2014-10-21 19:23:29 UTC) #14
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 2 months ago (2014-10-21 19:23:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645793006/60001
6 years, 2 months ago (2014-10-21 19:33:10 UTC) #18
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 19:33:26 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 39393e3ac309d4bedbc18bae98d3ebcb762501dd

Powered by Google App Engine
This is Rietveld 408576698