Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2574)

Issue 6007044: [PDF] If matrix inversion fails, use the identity matrix. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by Steve VanDeBogart
Modified:
12 years, 5 months ago
Reviewers:
bungeman, thakis
CC:
skia-review_googlegroups.com, reed1
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

[PDF] If matrix inversion fails, use the identity matrix. BUG=chrome:123078 Committed: https://code.google.com/p/skia/source/detail?r=3676

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M src/pdf/SkPDFDevice.cpp View 2 chunks +6 lines, -3 lines 0 comments Download
M src/pdf/SkPDFFormXObject.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 4
Steve VanDeBogart
12 years, 5 months ago (2012-04-13 20:39:31 UTC) #1
thakis
lgtm stamp based on reed's patch ( http://code.google.com/p/skia/source/detail?r=3657 ) looking identical. If many callers of ...
12 years, 5 months ago (2012-04-13 20:43:09 UTC) #2
Steve VanDeBogart
On 2012/04/13 20:43:09, thakis wrote: > lgtm stamp based on reed's patch ( > http://code.google.com/p/skia/source/detail?r=3657 ...
12 years, 5 months ago (2012-04-13 20:45:27 UTC) #3
bungeman
12 years, 5 months ago (2012-04-13 21:38:30 UTC) #4
This set of changes leaves much to be desired, and is probably worse than
leaving the warnings. In all the cases I see here, if the matrix were singular
you need to not draw or cause future draws not to happen. If the inverse fails
it does not mean "oops" it means that the matrix you were trying to invert draws
nothing (as it has no area).

Mike made some changes earlier but is planning on going back to fix them. They
should not be seen as models of how to handle the situation. inverse() most
certainly should *not* be returning identity in this case, if anything it should
be returning the matrix which maps everything to 0 (though this would less
efficient than simply skipping draws).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b