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

Issue 13892009: Use SkError for a bitmap that could not be decoded. (Closed)

Created:
7 years, 8 months ago by scroggo
Modified:
7 years, 8 months ago
Reviewers:
humper, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Use SkError for a bitmap that could not be decoded. When recreating an SkPicture from an SkStream, use the new error reporting system to report that an SkBitmap could not be decoded. Add a test that the parse error is thrown. Committed: https://code.google.com/p/skia/source/detail?r=8866

Patch Set 1 #

Total comments: 1

Patch Set 2 : Ensure that only the error I expected happened. #

Patch Set 3 : Use more specific name for callback function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
M src/core/SkOrderedReadBuffer.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M tests/PictureTest.cpp View 1 2 3 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
scroggo
7 years, 8 months ago (2013-04-23 14:47:57 UTC) #1
humper
https://codereview.chromium.org/13892009/diff/1/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/13892009/diff/1/tests/PictureTest.cpp#newcode405 tests/PictureTest.cpp:405: SkSetErrorCallback(error_callback, NULL); Is the idea here to silence the ...
7 years, 8 months ago (2013-04-25 17:07:08 UTC) #2
reed1
might vote for adding some layer in our testing for for now. perhaps a push/pop ...
7 years, 8 months ago (2013-04-25 17:10:07 UTC) #3
humper
That's a good idea; should I take care of that? I presume this is intended ...
7 years, 8 months ago (2013-04-25 17:29:47 UTC) #4
reed1
yes, my suggestion is to make this testing-specific, at least for now (easier to experiment ...
7 years, 8 months ago (2013-04-25 17:38:58 UTC) #5
scroggo
On 2013/04/25 17:38:58, reed1 wrote: > yes, my suggestion is to make this testing-specific, at ...
7 years, 8 months ago (2013-04-25 17:43:45 UTC) #6
humper
That seems fine, a little meta-test if you will. On 2013/04/25 17:43:45, scroggo wrote: > ...
7 years, 8 months ago (2013-04-25 17:44:54 UTC) #7
humper
How about something simpler where we just set the error callback to the default (NULL) ...
7 years, 8 months ago (2013-04-25 17:49:54 UTC) #8
scroggo
New patch, using a better error callback.
7 years, 8 months ago (2013-04-25 18:02:46 UTC) #9
humper
On 2013/04/25 18:02:46, scroggo wrote: > New patch, using a better error callback. lgtm I'll ...
7 years, 8 months ago (2013-04-25 18:24:44 UTC) #10
scroggo
7 years, 8 months ago (2013-04-25 18:30:16 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 manually as r8866 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698