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

Unified Diff: trunk/src/core/SkFontStream.cpp

Issue 12465009: rewind at the start of each FontStream api (since we rewinding internally anyway) (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 years, 10 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 | « trunk/src/core/SkFontStream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/core/SkFontStream.cpp
===================================================================
--- trunk/src/core/SkFontStream.cpp (revision 7984)
+++ trunk/src/core/SkFontStream.cpp (working copy)
@@ -89,6 +89,8 @@
fDir will be automatically freed when this object is destroyed
*/
bool init(SkStream* stream) {
+ stream->rewind();
+
size_t offsetToDir;
fCount = count_tables(stream, &offsetToDir);
if (0 == fCount) {
« no previous file with comments | « trunk/src/core/SkFontStream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698