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

Issue 11774005: Migrate more functions from MathUtil to gfx::Transform (Closed)

Created:
7 years, 11 months ago by shawnsingh
Modified:
7 years, 11 months ago
Reviewers:
Ian Vollick, danakj
CC:
chromium-reviews, feature-media-reviews_chromium.org, cc-bugs_chromium.org
Visibility:
Public.

Description

Migrate more functions from MathUtil to gfx::Transform This patch (1) removes rotateEulerAngles entirely (2) migrates some util functions from MathUtil to transform_util, and (3) moves all the MathUtil unit tests that actually belonged in ui/gfx/. BUG=159972 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176832

Patch Set 1 #

Total comments: 20

Patch Set 2 : Addressed reviewers feedback #

Total comments: 2

Patch Set 3 : Converted constructors to row-major input #

Total comments: 7

Patch Set 4 : patch for landing, addressed nits and rebased #

Patch Set 5 : try to fix double/float conversion errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1342 lines, -1526 lines) Patch
M cc/damage_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/draw_quad_unittest.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M cc/gl_renderer.cc View 1 2 3 4 chunks +6 lines, -4 lines 0 comments Download
M cc/layer_sorter_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_common.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 1 2 3 16 chunks +21 lines, -18 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/math_util.h View 2 chunks +0 lines, -18 lines 0 comments Download
M cc/math_util.cc View 2 chunks +0 lines, -103 lines 0 comments Download
M cc/math_util_unittest.cc View 1 2 chunks +0 lines, -1127 lines 0 comments Download
M cc/occlusion_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/render_pass_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/software_renderer.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/video_layer_impl.cc View 1 2 3 2 chunks +10 lines, -10 lines 0 comments Download
M ui/gfx/transform.h View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M ui/gfx/transform.cc View 1 2 3 2 chunks +52 lines, -0 lines 0 comments Download
M ui/gfx/transform_unittest.cc View 1 2 3 4 7 chunks +1210 lines, -232 lines 0 comments Download
M ui/gfx/transform_util_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
shawnsingh
PTAL, thanks. I was a little unsure what the preferred way to add a "test ...
7 years, 11 months ago (2013-01-07 22:32:24 UTC) #1
danakj
does cc_tests.gyp need to depend on ui_unittests.gyp for these helper methods? should they be a ...
7 years, 11 months ago (2013-01-07 23:22:35 UTC) #2
shawnsingh
Thanks for review, will address all your comments even though I'm replying only to a ...
7 years, 11 months ago (2013-01-07 23:59:53 UTC) #3
Ian Vollick
https://codereview.chromium.org/11774005/diff/1/ui/gfx/transform_util.h File ui/gfx/transform_util.h (right): https://codereview.chromium.org/11774005/diff/1/ui/gfx/transform_util.h#newcode72 ui/gfx/transform_util.h:72: UI_EXPORT Transform CreateGfxTransform( On 2013/01/07 23:22:35, danakj wrote: > ...
7 years, 11 months ago (2013-01-08 00:41:21 UTC) #4
danakj
https://codereview.chromium.org/11774005/diff/1/ui/gfx/transform_unittest.cc File ui/gfx/transform_unittest.cc (right): https://codereview.chromium.org/11774005/diff/1/ui/gfx/transform_unittest.cc#newcode1609 ui/gfx/transform_unittest.cc:1609: EXPECT_ROW1_NEAR(0, 0, 6, 0, A, ERROR_THRESHOLD); On 2013/01/07 23:59:53, ...
7 years, 11 months ago (2013-01-08 00:45:08 UTC) #5
shawnsingh
On 2013/01/08 00:41:21, vollick wrote: > https://codereview.chromium.org/11774005/diff/1/ui/gfx/transform_util.h > File ui/gfx/transform_util.h (right): > > https://codereview.chromium.org/11774005/diff/1/ui/gfx/transform_util.h#newcode72 > ...
7 years, 11 months ago (2013-01-08 18:55:30 UTC) #6
shawnsingh
PTAL (1) Fixed the .0 issue in a large portion of transform_unittests.cc (2) This time ...
7 years, 11 months ago (2013-01-08 23:38:17 UTC) #7
Ian Vollick
https://codereview.chromium.org/11774005/diff/10001/ui/gfx/transform.h File ui/gfx/transform.h (right): https://codereview.chromium.org/11774005/diff/10001/ui/gfx/transform.h#newcode47 ui/gfx/transform.h:47: double col4row1, double col4row2, double col4row3, double col4row4); I'm ...
7 years, 11 months ago (2013-01-08 23:52:54 UTC) #8
danakj
https://codereview.chromium.org/11774005/diff/10001/ui/gfx/transform.h File ui/gfx/transform.h (right): https://codereview.chromium.org/11774005/diff/10001/ui/gfx/transform.h#newcode47 ui/gfx/transform.h:47: double col4row1, double col4row2, double col4row3, double col4row4); On ...
7 years, 11 months ago (2013-01-09 14:33:46 UTC) #9
shawnsingh
PTAL - I converted the constructors to row-major form. It's worth noting that there are ...
7 years, 11 months ago (2013-01-09 19:58:55 UTC) #10
danakj
LGTM+nits https://codereview.chromium.org/11774005/diff/17001/cc/draw_quad_unittest.cc File cc/draw_quad_unittest.cc (right): https://codereview.chromium.org/11774005/diff/17001/cc/draw_quad_unittest.cc#newcode28 cc/draw_quad_unittest.cc:28: gfx::Transform quadTransform = gfx::Transform(1, 0, 0.5, 1, 0.5, ...
7 years, 11 months ago (2013-01-11 04:14:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/11774005/25001
7 years, 11 months ago (2013-01-11 21:45:03 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-11 22:21:17 UTC) #13
shawnsingh
looks like I need to use the .0f syntax to make all my literals as ...
7 years, 11 months ago (2013-01-14 18:24:52 UTC) #14
jamesr
On 2013/01/14 18:24:52, shawnsingh wrote: > looks like I need to use the .0f syntax ...
7 years, 11 months ago (2013-01-14 19:22:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/11774005/30002
7 years, 11 months ago (2013-01-15 03:00:18 UTC) #16
commit-bot: I haz the power
7 years, 11 months ago (2013-01-15 07:49:42 UTC) #17
Message was sent while issue was closed.
Change committed as 176832

Powered by Google App Engine
This is Rietveld 408576698