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

Unified Diff: src/pdf/SkPDFFont.cpp

Issue 12926004: When we read from a RemoteFontStream (might happen maybe with other streams), stream's data might b… (Closed) Base URL: http://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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFFont.cpp
===================================================================
--- src/pdf/SkPDFFont.cpp (revision 8280)
+++ src/pdf/SkPDFFont.cpp (working copy)
@@ -549,6 +549,7 @@
SkPDFStream** fontStream) {
int ttcIndex;
SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex));
vandebo (ex-Chrome) 2013/03/21 00:55:11 Shouldn't typeface->openStream() return a stream a
bungeman-skia 2013/03/21 03:25:12 I have to agree, this is an issue with reed's chan
edisonn 2013/03/21 13:33:08 done; added issue 1176 for the thread safety. righ
+ fontData->rewind();
edisonn 2013/03/21 13:33:08 Steve's comments: 1) openStream should give alread
int fontSize = fontData->getLength();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698