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

Issue 1497153002: Replace inverse transform with Cross-product computation. (Closed)

Created:
5 years ago by Peter Mayo
Modified:
5 years ago
Reviewers:
Ian Vollick
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace inverse transform with Cross-product computation. This changes how we compute the 3d normals for quads moved into a 3d context. The inverse transform approach seems to suffer numeric instability around small Y rotations that invert the normal, causing artifacts during rotation animations. BUG=565758 TEST=observe 565758#2 html, and see no flicker at the start of the twist. R=vollick@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5240189cba88ed90ef654310c064d588c022f837 Cr-Commit-Position: refs/heads/master@{#364367}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix expectations of test that transforms a pointless polygon. #

Patch Set 3 : Windows fixes. #

Total comments: 1

Patch Set 4 : rebase + more windows #

Total comments: 4

Patch Set 5 : Remove dead code #

Patch Set 6 : Add inverse normal test early #

Patch Set 7 : Rebased #

Patch Set 8 : Another Windows fix #

Patch Set 9 : Another Windows fix #

Patch Set 10 : Add broken Layout tests #

Total comments: 1

Patch Set 11 : Rebased #

Patch Set 12 : Moved section and rebased again #

Messages

Total messages: 36 (12 generated)
Peter Mayo
PTAL Still not enough to fix Marcofolio's 3d example, but it fixes the related repro ...
5 years ago (2015-12-04 04:33:56 UTC) #2
Peter Mayo
Fix expectations of test that transforms a pointless polygon.
5 years ago (2015-12-04 05:19:03 UTC) #3
Peter Mayo
https://codereview.chromium.org/1497153002/diff/1/cc/quads/draw_polygon_unittest.cc File cc/quads/draw_polygon_unittest.cc (right): https://codereview.chromium.org/1497153002/diff/1/cc/quads/draw_polygon_unittest.cc#newcode94 cc/quads/draw_polygon_unittest.cc:94: EXPECT_NORMAL(polygon, 0.0, 0.0, 1.0); On 2015/12/04 04:33:56, Peter Mayo ...
5 years ago (2015-12-04 05:21:34 UTC) #4
Peter Mayo
https://codereview.chromium.org/1497153002/diff/40001/cc/quads/draw_polygon.cc File cc/quads/draw_polygon.cc (right): https://codereview.chromium.org/1497153002/diff/40001/cc/quads/draw_polygon.cc#newcode101 cc/quads/draw_polygon.cc:101: normal_.set_z(0.0f); What about saving the old normal and adding ...
5 years ago (2015-12-04 16:40:41 UTC) #5
Peter Mayo
rebase + more windows
5 years ago (2015-12-04 16:43:52 UTC) #6
Ian Vollick
lgtm with a few nits (and thanks for the nice tests). https://codereview.chromium.org/1497153002/diff/60001/cc/quads/draw_polygon_unittest.cc File cc/quads/draw_polygon_unittest.cc (right): ...
5 years ago (2015-12-05 01:09:58 UTC) #7
Peter Mayo
Remove dead code
5 years ago (2015-12-07 15:02:36 UTC) #8
Peter Mayo
Add inverse normal test early
5 years ago (2015-12-07 15:45:21 UTC) #9
Peter Mayo
Rebased
5 years ago (2015-12-07 22:27:23 UTC) #10
Peter Mayo
https://codereview.chromium.org/1497153002/diff/60001/cc/quads/draw_polygon_unittest.cc File cc/quads/draw_polygon_unittest.cc (right): https://codereview.chromium.org/1497153002/diff/60001/cc/quads/draw_polygon_unittest.cc#newcode60 cc/quads/draw_polygon_unittest.cc:60: vertices.push_back(gfx::Point3F(10.0f, 10.0f, 0.0f)); On 2015/12/05 01:09:58, vollick wrote: > ...
5 years ago (2015-12-07 22:28:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1497153002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1497153002/120001
5 years ago (2015-12-07 22:29:10 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/139338)
5 years ago (2015-12-08 00:16:18 UTC) #16
Peter Mayo
Another Windows fix
5 years ago (2015-12-08 00:50:58 UTC) #17
Peter Mayo
Another Windows fix
5 years ago (2015-12-08 01:32:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1497153002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1497153002/160001
5 years ago (2015-12-08 03:33:52 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/80197)
5 years ago (2015-12-08 05:33:50 UTC) #23
Peter Mayo
Rebased
5 years ago (2015-12-09 15:22:14 UTC) #24
Peter Mayo
PTAL at test changes. https://codereview.chromium.org/1497153002/diff/180001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/1497153002/diff/180001/third_party/WebKit/LayoutTests/TestExpectations#newcode1359 third_party/WebKit/LayoutTests/TestExpectations:1359: crbug.com/565758 transforms/3d/point-mapping/3d-point-mapping-preserve-3d.html [ NeedsRebaseline ] ...
5 years ago (2015-12-09 15:22:39 UTC) #25
Peter Mayo
Moved section and rebased again
5 years ago (2015-12-09 20:45:53 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1497153002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1497153002/220001
5 years ago (2015-12-09 20:48:20 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/108080)
5 years ago (2015-12-10 00:38:54 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1497153002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1497153002/220001
5 years ago (2015-12-10 15:37:10 UTC) #33
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years ago (2015-12-10 15:42:15 UTC) #34
commit-bot: I haz the power
5 years ago (2015-12-10 15:43:06 UTC) #36
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/5240189cba88ed90ef654310c064d588c022f837
Cr-Commit-Position: refs/heads/master@{#364367}

Powered by Google App Engine
This is Rietveld 408576698