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

Issue 1209763002: Fix infinite matrix during an invert. (Closed)

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

Description

Fix infinite matrix during an invert. This patch ensures that when inverting a SkMatrix44, we handle small floats properly. When inverted these can cause infinite values, but still evaluate to true in an if condition. BUG=chromium:498516 Committed: https://skia.googlesource.com/skia/+/a8d4559fd6fb4f8ed213e201bb738dbc7b3c3512

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : update #

Patch Set 4 : update #

Patch Set 5 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -34 lines) Patch
M include/utils/SkMatrix44.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/utils/SkMatrix44.cpp View 1 2 3 4 5 chunks +57 lines, -33 lines 0 comments Download
M tests/Matrix44Test.cpp View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
vmpstr
Please take a look.
5 years, 6 months ago (2015-06-24 20:31:06 UTC) #2
reed1
We faced a similar bug in SkMatrix, but decided to solve it by checking the ...
5 years, 6 months ago (2015-06-24 21:30:52 UTC) #4
vmpstr
On 2015/06/24 21:30:52, reed1 wrote: > We faced a similar bug in SkMatrix, but decided ...
5 years, 6 months ago (2015-06-25 21:48:14 UTC) #5
vmpstr
ping
5 years, 5 months ago (2015-06-29 17:28:17 UTC) #6
reed1
We should expand our test to all of the inverse cases, but either way, the ...
5 years, 5 months ago (2015-06-29 21:47:29 UTC) #7
vmpstr
On 2015/06/29 21:47:29, reed1 wrote: > We should expand our test to all of the ...
5 years, 5 months ago (2015-06-29 21:56:52 UTC) #8
reed1
On 2015/06/29 21:56:52, vmpstr wrote: > On 2015/06/29 21:47:29, reed1 wrote: > > We should ...
5 years, 5 months ago (2015-06-29 22:02:43 UTC) #9
vmpstr
PTAL
5 years, 5 months ago (2015-06-30 00:00:28 UTC) #10
reed1
thanks, that looks very complete from a functional p.o.v. I think we are now introducing ...
5 years, 5 months ago (2015-06-30 18:24:10 UTC) #11
vmpstr
On 2015/06/30 18:24:10, reed1 wrote: > thanks, that looks very complete from a functional p.o.v. ...
5 years, 5 months ago (2015-06-30 18:34:10 UTC) #12
reed1
Very good point! I think we should consider changing the contract on these sorts of ...
5 years, 5 months ago (2015-06-30 18:43:59 UTC) #13
vmpstr
PTAL
5 years, 5 months ago (2015-06-30 19:55:09 UTC) #14
reed1
very nice. lgtm btw -- the is_finite can be much faster like this: SkMScalar accumulator ...
5 years, 5 months ago (2015-06-30 20:15:05 UTC) #15
reed1
On 2015/06/30 20:15:05, reed1 wrote: > very nice. lgtm > > btw -- the is_finite ...
5 years, 5 months ago (2015-06-30 20:15:44 UTC) #16
vmpstr
On 2015/06/30 20:15:05, reed1 wrote: > very nice. lgtm > > btw -- the is_finite ...
5 years, 5 months ago (2015-06-30 20:28:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209763002/80001
5 years, 5 months ago (2015-06-30 20:28:47 UTC) #20
commit-bot: I haz the power
5 years, 5 months ago (2015-06-30 20:36:10 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/a8d4559fd6fb4f8ed213e201bb738dbc7b3c3512

Powered by Google App Engine
This is Rietveld 408576698