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

Issue 10210002: Interpolated rotations should end cleanly where possible. (Closed)

Created:
8 years, 8 months ago by Ian Vollick
Modified:
8 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Interpolated rotations should end cleanly where possible. Due to numeric issues, interpolated rotations of 90 degrees end at 'unclean' transforms. That is, they have some entries that are not 0, 1, or -1. With this patch, interpolated rotations detect when rotations should end cleanly and massage matrix entries where appropriate. BUG=chrome-os-partner:9166 TEST=InterpolatedTransformTest.ScreenRotationEndsCleanly, InterpolatedTransformTest.MaximizeEndsCleanly Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133986

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -2 lines) Patch
M ui/gfx/interpolated_transform.cc View 1 3 chunks +52 lines, -2 lines 0 comments Download
M ui/gfx/interpolated_transform_unittest.cc View 1 2 2 chunks +121 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Ian Vollick
Interpolated rotations should be smarter about cleaning up rotation matrices when they represent a rotation ...
8 years, 8 months ago (2012-04-24 17:03:28 UTC) #1
piman
https://chromiumcodereview.appspot.com/10210002/diff/2001/ui/gfx/interpolated_transform.cc File ui/gfx/interpolated_transform.cc (right): https://chromiumcodereview.appspot.com/10210002/diff/2001/ui/gfx/interpolated_transform.cc#newcode46 ui/gfx/interpolated_transform.cc:46: if (fabs(entry) < EPSILON) I worry that we may ...
8 years, 8 months ago (2012-04-24 17:15:43 UTC) #2
James Cook
LGTM - Based on your test passing I think this would solve my problem, but ...
8 years, 8 months ago (2012-04-24 17:18:18 UTC) #3
Ian Vollick
On 2012/04/24 17:15:43, piman wrote: > https://chromiumcodereview.appspot.com/10210002/diff/2001/ui/gfx/interpolated_transform.cc > File ui/gfx/interpolated_transform.cc (right): > > https://chromiumcodereview.appspot.com/10210002/diff/2001/ui/gfx/interpolated_transform.cc#newcode46 > ...
8 years, 8 months ago (2012-04-24 18:00:00 UTC) #4
Ian Vollick
On 2012/04/24 17:18:18, James Cook (Chromium) wrote: > LGTM - Based on your test passing ...
8 years, 8 months ago (2012-04-24 18:00:16 UTC) #5
Ian Vollick
+sky for OWNERS
8 years, 8 months ago (2012-04-24 18:01:15 UTC) #6
piman
lgtm
8 years, 8 months ago (2012-04-24 18:40:38 UTC) #7
sky
LGTM https://chromiumcodereview.appspot.com/10210002/diff/11002/ui/gfx/interpolated_transform.cc File ui/gfx/interpolated_transform.cc (right): https://chromiumcodereview.appspot.com/10210002/diff/11002/ui/gfx/interpolated_transform.cc#newcode21 ui/gfx/interpolated_transform.cc:21: { nit: { on previous line (33 too).
8 years, 8 months ago (2012-04-24 19:43:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/10210002/20001
8 years, 8 months ago (2012-04-25 20:13:45 UTC) #9
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 21:39:13 UTC) #10
Change committed as 133986

Powered by Google App Engine
This is Rietveld 408576698