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

Issue 1188433011: Added check for ill-conditioned invert (Closed)

Created:
5 years, 6 months ago by robertphillips
Modified:
5 years, 6 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Added check for ill-conditioned invert sk_inv_determinant has a guard that the determinant can't get too big so this CL only checks if the determinant gets too small. BUG=492263 Committed: https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96

Patch Set 1 #

Patch Set 2 : Update #

Total comments: 4

Patch Set 3 : Address code review comments #

Total comments: 1

Patch Set 4 : Address further code review comments (always perform exhaustive check) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -36 lines) Patch
M include/core/SkMatrix.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkMatrix.cpp View 1 2 3 3 chunks +59 lines, -36 lines 0 comments Download
M tests/MatrixTest.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
robertphillips
5 years, 6 months ago (2015-06-17 13:58:58 UTC) #2
robertphillips
PTAL
5 years, 6 months ago (2015-06-17 19:06:45 UTC) #3
reed1
https://codereview.chromium.org/1188433011/diff/20001/include/core/SkMatrix.h File include/core/SkMatrix.h (right): https://codereview.chromium.org/1188433011/diff/20001/include/core/SkMatrix.h#newcode726 include/core/SkMatrix.h:726: static void ComputeInv(const SkScalar* src, SkScalar* dst, SkScalar scale, ...
5 years, 6 months ago (2015-06-17 19:27:56 UTC) #4
robertphillips
https://codereview.chromium.org/1188433011/diff/20001/include/core/SkMatrix.h File include/core/SkMatrix.h (right): https://codereview.chromium.org/1188433011/diff/20001/include/core/SkMatrix.h#newcode726 include/core/SkMatrix.h:726: static void ComputeInv(const SkScalar* src, SkScalar* dst, SkScalar scale, ...
5 years, 6 months ago (2015-06-17 19:44:46 UTC) #5
reed1
I'm not wild about adding SkScalarSmallest. Can we skip adding that, and just references FLOAT_MIN ...
5 years, 6 months ago (2015-06-17 19:49:29 UTC) #6
reed1
actually, I think a custom const is even clearer... // Need a limit to avoid ...
5 years, 6 months ago (2015-06-17 19:50:50 UTC) #7
robertphillips
PTAL. Now with a more consistent behavior (always check for a finite answer).
5 years, 6 months ago (2015-06-17 20:04:24 UTC) #8
robertphillips
ping
5 years, 6 months ago (2015-06-18 15:25:35 UTC) #9
reed1
nice. lgtm
5 years, 6 months ago (2015-06-18 20:39:28 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188433011/60001
5 years, 6 months ago (2015-06-19 11:49:39 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-19 12:01:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188433011/60001
5 years, 6 months ago (2015-06-19 12:13:48 UTC) #16
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 12:14:29 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/20eee3f047f56b7715b311313b2998daaaf08a96

Powered by Google App Engine
This is Rietveld 408576698