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

Issue 508303005: SkMatrix44::preserves2dAxisAlignment() (Closed)

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

Description

SkMatrix44::preserves2dAxisAlignment() Convenience function requested for Chrome compositor that may have a performance advantage. BUG=skia:1017 R=reed@google.com,danakj@chromium.org Committed: https://skia.googlesource.com/skia/+/faccb8eb53f1bc745d3dd530d8df8b40e0dedc23

Patch Set 1 #

Patch Set 2 : Imported chrome unit test #

Patch Set 3 : Fix perspective check, add tolerance #

Total comments: 3

Patch Set 4 : Use approximate math, perspective divide #

Total comments: 18

Patch Set 5 : Review fixes #

Patch Set 6 : unit test review fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -0 lines) Patch
M include/utils/SkMatrix44.h View 1 2 3 4 5 3 chunks +18 lines, -0 lines 0 comments Download
M src/utils/SkMatrix44.cpp View 1 2 3 4 1 chunk +40 lines, -0 lines 1 comment Download
M tests/Matrix44Test.cpp View 1 2 3 4 5 2 chunks +213 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (1 generated)
tomhudson
Sketch of a CL. My concerns about it are at more length on http://skbug.com/1017/: * ...
6 years, 3 months ago (2014-08-28 18:56:32 UTC) #1
reed1
I see that we already have computeTypeMask(), so we are in a position to extend ...
6 years, 3 months ago (2014-08-28 20:42:54 UTC) #2
tomhudson
Unfortunately this implementation fails the *very last* unit test in the Chrome test suite.
6 years, 3 months ago (2014-08-28 21:26:11 UTC) #3
danakj
danakj@chromium.org changed reviewers: + danakj@chromium.org
6 years, 3 months ago (2014-08-28 21:54:06 UTC) #4
danakj
Because perspective on z axis does preserve 2d alignment?
6 years, 3 months ago (2014-08-28 21:54:06 UTC) #5
tomhudson
tomhudson@google.com changed reviewers: - danakj@google.com
6 years, 3 months ago (2014-08-29 13:16:50 UTC) #6
tomhudson
tomhudson@google.com changed reviewers: + vollick@chromium.org
6 years, 3 months ago (2014-08-29 13:18:01 UTC) #7
tomhudson
On 2014/08/28 21:54:06, danakj wrote: > Because perspective on z axis does preserve 2d alignment? ...
6 years, 3 months ago (2014-08-29 13:22:08 UTC) #8
tomhudson
On 2014/08/29 13:22:08, tomhudson wrote: > On 2014/08/28 21:54:06, danakj wrote: > > Because perspective ...
6 years, 3 months ago (2014-08-29 14:18:09 UTC) #9
danakj
https://codereview.chromium.org/508303005/diff/40001/tests/Matrix44Test.cpp File tests/Matrix44Test.cpp (right): https://codereview.chromium.org/508303005/diff/40001/tests/Matrix44Test.cpp#newcode525 tests/Matrix44Test.cpp:525: return (p1.fData[0] == p2.fData[0] && p2.fData[1] == p3.fData[1] && ...
6 years, 3 months ago (2014-09-03 19:59:23 UTC) #10
Ian Vollick
https://codereview.chromium.org/508303005/diff/40001/tests/Matrix44Test.cpp File tests/Matrix44Test.cpp (right): https://codereview.chromium.org/508303005/diff/40001/tests/Matrix44Test.cpp#newcode540 tests/Matrix44Test.cpp:540: p1 = transform * p1; On 2014/09/03 19:59:22, danakj ...
6 years, 3 months ago (2014-09-05 15:05:27 UTC) #11
tomhudson
Mike, this now has unit tests and so should be ready per your earlier comment. ...
6 years, 3 months ago (2014-09-19 16:16:55 UTC) #12
Ian Vollick
On 2014/09/19 16:16:55, tomhudson wrote: > Mike, this now has unit tests and so should ...
6 years, 3 months ago (2014-09-19 16:28:21 UTC) #13
danakj
LGTM thanks! https://codereview.chromium.org/508303005/diff/60001/src/utils/SkMatrix44.cpp File src/utils/SkMatrix44.cpp (right): https://codereview.chromium.org/508303005/diff/60001/src/utils/SkMatrix44.cpp#newcode12 src/utils/SkMatrix44.cpp:12: // Taken from Chromium's gfx::Transform Haha, hilarious ...
6 years, 3 months ago (2014-09-19 16:29:47 UTC) #14
Ian Vollick
https://codereview.chromium.org/508303005/diff/60001/src/utils/SkMatrix44.cpp File src/utils/SkMatrix44.cpp (right): https://codereview.chromium.org/508303005/diff/60001/src/utils/SkMatrix44.cpp#newcode12 src/utils/SkMatrix44.cpp:12: // Taken from Chromium's gfx::Transform On 2014/09/19 16:29:47, danakj ...
6 years, 3 months ago (2014-09-19 16:32:06 UTC) #15
reed1
https://codereview.chromium.org/508303005/diff/60001/include/utils/SkMatrix44.h File include/utils/SkMatrix44.h (right): https://codereview.chromium.org/508303005/diff/60001/include/utils/SkMatrix44.h#newcode380 include/utils/SkMatrix44.h:380: bool preserves2dAxisAlignment () const; Dox? e.g. - what does ...
6 years, 3 months ago (2014-09-19 16:45:14 UTC) #16
tomhudson
https://codereview.chromium.org/508303005/diff/60001/include/utils/SkMatrix44.h File include/utils/SkMatrix44.h (right): https://codereview.chromium.org/508303005/diff/60001/include/utils/SkMatrix44.h#newcode380 include/utils/SkMatrix44.h:380: bool preserves2dAxisAlignment () const; On 2014/09/19 16:45:14, reed1 wrote: ...
6 years, 3 months ago (2014-09-19 18:21:19 UTC) #17
reed1
lgtm https://codereview.chromium.org/508303005/diff/100001/src/utils/SkMatrix44.cpp File src/utils/SkMatrix44.cpp (right): https://codereview.chromium.org/508303005/diff/100001/src/utils/SkMatrix44.cpp#newcode894 src/utils/SkMatrix44.cpp:894: return false; evil, but you could say for ...
6 years, 2 months ago (2014-09-26 18:34:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/508303005/100001
6 years, 2 months ago (2014-09-26 18:37:25 UTC) #20
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 18:45:53 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as faccb8eb53f1bc745d3dd530d8df8b40e0dedc23

Powered by Google App Engine
This is Rietveld 408576698