diff options
author | 2011-06-24 21:09:39 +0000 | |
---|---|---|
committer | 2011-06-24 21:09:39 +0000 | |
commit | ae8a2e5cba553267b189b8b5cae40330c4ff5bdb (patch) | |
tree | 58f1fe46d47aa2c2982c7e4942f65ecd684d4d47 /samplecode | |
parent | 6ed82493588c9f909820f82cf28b664a4ac27df1 (diff) |
Modified the iOS pdf data code to use steam.copytoData()
git-svn-id: http://skia.googlecode.com/svn/trunk@1721 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 1464fe7af3..d561c85148 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -781,7 +781,7 @@ void SampleWindow::afterChildren(SkCanvas* orig) { #ifdef SK_BUILD_FOR_IOS SkDynamicMemoryWStream mstream; doc.emitPDF(&mstream); - fPDFData = SkData::NewWithCopy(mstream.getStream(),mstream.getOffset()); + fPDFData = mstream.copyToData(); #endif SkFILEWStream stream(name.c_str()); if (stream.isValid()) { |