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

Issue 1950603002: Motown: Add new Ratio and LinearFunction classes to media/common/cpp. (Closed)

Created:
4 years, 7 months ago by dalesat
Modified:
4 years, 7 months ago
Reviewers:
kulakowski
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Motown: Add new Ratio and LinearFunction classes to media/common/cpp. Ratio and LinearFunction duplicate LinearTransform::Ratio and LinearTransform with some improvements in terminology and notational convenience. Unit tests are included. These classes have been added to mojo/services/media/common/cpp so that clients can use them. The new timing code will use these classes. R=kulakowski@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/51a3952f63000f51dd6246a480b148efcd90174f

Patch Set 1 #

Patch Set 2 : Fixed some integer overflows flagged by android compile. #

Total comments: 16

Patch Set 3 : Hid member variables behind accessors. #

Total comments: 6

Patch Set 4 : Fixes per feedback. #

Total comments: 2

Patch Set 5 : Fixes per feedback. #

Patch Set 6 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+937 lines, -3 lines) Patch
M mojo/services/media/common/cpp/BUILD.gn View 2 chunks +6 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/linear_function.h View 1 2 1 chunk +123 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/linear_function.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/ratio.h View 1 2 3 1 chunk +118 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/ratio.cc View 1 2 3 4 1 chunk +228 lines, -0 lines 0 comments Download
M services/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M services/media/common/BUILD.gn View 2 chunks +20 lines, -0 lines 0 comments Download
A services/media/common/test/linear_function_test.cc View 1 2 1 chunk +226 lines, -0 lines 0 comments Download
A services/media/common/test/ratio_test.cc View 1 2 3 1 chunk +181 lines, -0 lines 0 comments Download
A + services/media/common/test/test_base.h View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
dalesat
Please take a look. Thanks!
4 years, 7 months ago (2016-05-03 19:33:54 UTC) #3
kulakowski
On 2016/05/03 19:33:54, dalesat wrote: > Please take a look. Thanks! I have one round ...
4 years, 7 months ago (2016-05-03 20:16:17 UTC) #4
kulakowski
https://codereview.chromium.org/1950603002/diff/20001/mojo/services/media/common/cpp/linear_function.h File mojo/services/media/common/cpp/linear_function.h (right): https://codereview.chromium.org/1950603002/diff/20001/mojo/services/media/common/cpp/linear_function.h#newcode23 mojo/services/media/common/cpp/linear_function.h:23: static int64_t Apply(int64_t domain_basis, In both LinearFunction and Ratio, ...
4 years, 7 months ago (2016-05-03 20:16:27 UTC) #5
dalesat
PTAL https://codereview.chromium.org/1950603002/diff/20001/mojo/services/media/common/cpp/linear_function.h File mojo/services/media/common/cpp/linear_function.h (right): https://codereview.chromium.org/1950603002/diff/20001/mojo/services/media/common/cpp/linear_function.h#newcode23 mojo/services/media/common/cpp/linear_function.h:23: static int64_t Apply(int64_t domain_basis, On 2016/05/03 20:16:26, kulakowski ...
4 years, 7 months ago (2016-05-03 22:36:06 UTC) #6
kulakowski
Thanks for the explanation. Still a few small things. https://codereview.chromium.org/1950603002/diff/20001/mojo/services/media/common/cpp/linear_function.h File mojo/services/media/common/cpp/linear_function.h (right): https://codereview.chromium.org/1950603002/diff/20001/mojo/services/media/common/cpp/linear_function.h#newcode23 mojo/services/media/common/cpp/linear_function.h:23: ...
4 years, 7 months ago (2016-05-04 06:35:39 UTC) #7
dalesat
PTAL https://codereview.chromium.org/1950603002/diff/20001/mojo/services/media/common/cpp/linear_function.h File mojo/services/media/common/cpp/linear_function.h (right): https://codereview.chromium.org/1950603002/diff/20001/mojo/services/media/common/cpp/linear_function.h#newcode23 mojo/services/media/common/cpp/linear_function.h:23: static int64_t Apply(int64_t domain_basis, On 2016/05/04 06:35:39, kulakowski ...
4 years, 7 months ago (2016-05-04 17:25:53 UTC) #8
kulakowski
Otherwise lg2m https://codereview.chromium.org/1950603002/diff/60001/mojo/services/media/common/cpp/ratio.cc File mojo/services/media/common/cpp/ratio.cc (right): https://codereview.chromium.org/1950603002/diff/60001/mojo/services/media/common/cpp/ratio.cc#newcode196 mojo/services/media/common/cpp/ratio.cc:196: ScaleUInt64(static_cast<uint64_t>(std::abs(value)), numerator, Sadly, this just pushed the ...
4 years, 7 months ago (2016-05-04 17:41:15 UTC) #9
dalesat
PTAL https://codereview.chromium.org/1950603002/diff/60001/mojo/services/media/common/cpp/ratio.cc File mojo/services/media/common/cpp/ratio.cc (right): https://codereview.chromium.org/1950603002/diff/60001/mojo/services/media/common/cpp/ratio.cc#newcode196 mojo/services/media/common/cpp/ratio.cc:196: ScaleUInt64(static_cast<uint64_t>(std::abs(value)), numerator, On 2016/05/04 17:41:15, kulakowski wrote: > ...
4 years, 7 months ago (2016-05-04 18:05:04 UTC) #10
kulakowski
lgtm
4 years, 7 months ago (2016-05-04 18:27:42 UTC) #11
dalesat
4 years, 7 months ago (2016-05-04 18:31:31 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
51a3952f63000f51dd6246a480b148efcd90174f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698