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

Unified Diff: gm/gmmain.cpp

Issue 12753007: Update gm so it doe not write the size of the pdf (writeData writes the length of the data too) (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: gm/gmmain.cpp
===================================================================
--- gm/gmmain.cpp (revision 8173)
+++ gm/gmmain.cpp (working copy)
@@ -282,7 +282,7 @@
const SkDynamicMemoryWStream& document) {
SkFILEWStream stream(path.c_str());
SkAutoDataUnref data(document.copyToData());
epoger 2013/03/15 17:01:46 Filed https://code.google.com/p/skia/issues/detail
- return stream.writeData(data.get());
+ return stream.write(data.get()->data(), data.get()->size());
epoger 2013/03/15 17:01:46 Also, Mike... does stream.write() guarantee that i
epoger 2013/03/28 20:20:44 The last question here is whether write() is guara
}
/**
« 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