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

Unified Diff: src/ports/SkFontHost_FreeType.cpp

Issue 12834012: Update code to use helper function for better readability/searching. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/images/SkImageDecoder_libico.cpp ('k') | src/ports/SkXMLParser_expat.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkFontHost_FreeType.cpp
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index b08aa8e6fd81928abb24611e2cc123c79965ab46..6a36f4407aa3a90cceef3e46d289593cdbff2802 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -1333,7 +1333,7 @@ bool find_name_and_attributes(SkStream* stream, SkString* name,
args.memory_size = stream->getLength();
} else {
memset(&streamRec, 0, sizeof(streamRec));
- streamRec.size = stream->read(NULL, 0);
+ streamRec.size = stream->getLength();
streamRec.descriptor.pointer = stream;
streamRec.read = sk_stream_read;
streamRec.close = sk_stream_close;
« no previous file with comments | « src/images/SkImageDecoder_libico.cpp ('k') | src/ports/SkXMLParser_expat.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698