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

Issue 8800017: Change SkFileDescriptorStream to handle failure to open the file descriptor (Closed)

Created:
9 years ago by reed1
Modified:
9 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Change SkFileDescriptorStream to handle failure to open the file descriptor (by initializing its length_ to 0), and to return the number of bytes skipped if buffer==null, rather than returning the offset. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113197

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -11 lines) Patch
M skia/ext/SkFontHost_fontconfig.cpp View 2 chunks +4 lines, -11 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
reed1
9 years ago (2011-12-05 19:45:43 UTC) #1
bungeman-skia
9 years ago (2011-12-05 21:02:44 UTC) #2
LGTM, with one questionable nit.

http://codereview.chromium.org/8800017/diff/1/skia/ext/SkFontHost_fontconfig.cpp
File skia/ext/SkFontHost_fontconfig.cpp (right):

http://codereview.chromium.org/8800017/diff/1/skia/ext/SkFontHost_fontconfig....
skia/ext/SkFontHost_fontconfig.cpp:246: length_ = 0;
This is following the existing convention, but should these not be set in the
initialization list?

Powered by Google App Engine
This is Rietveld 408576698