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

Issue 581263002: check for failed file->data (Closed)

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

Description

check for failed file->data (fails on mac) TBR= Committed: https://skia.googlesource.com/skia/+/48925e3b3179a19b5cebed8ead237633107f160f

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -12 lines) Patch
M gm/image.cpp View 1 chunk +4 lines, -12 lines 2 comments Download

Messages

Total messages: 5 (2 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/581263002/1
6 years, 3 months ago (2014-09-18 20:30:40 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1) as 48925e3b3179a19b5cebed8ead237633107f160f
6 years, 3 months ago (2014-09-18 20:57:08 UTC) #3
tfarina
6 years, 3 months ago (2014-09-19 16:14:49 UTC) #5
Message was sent while issue was closed.
lgtm

It would be interesting to check-in skia.google.jpeg into
https://skia.googlesource.com/skia/+/master/resources/ directoy to fix this
TODO.

Regards,

https://codereview.chromium.org/581263002/diff/1/gm/image.cpp
File gm/image.cpp (right):

https://codereview.chromium.org/581263002/diff/1/gm/image.cpp#newcode23
gm/image.cpp:23: SkAutoDataUnref
data(SkData::NewFromFileName("/Users/mike/Downloads/skia.google.jpeg"));
The code of NewFromFileName
(https://skia.googlesource.com/skia/+/master/src/core/SkData.cpp#144) is not
identical to fileToData(), but I assume is more robust.

https://codereview.chromium.org/581263002/diff/1/gm/image.cpp#newcode24
gm/image.cpp:24: if (NULL == data.get()) {
OK

Powered by Google App Engine
This is Rietveld 408576698