commit | 1ca36ecfd9dc37d0d4121a020a0371a81ec33f99 | [log] [tgz] |
---|---|---|
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon May 06 14:28:43 2013 +0000 |
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon May 06 14:28:43 2013 +0000 |
tree | 35199fbe2c5ddec483742e12be349bc745e96828 | |
parent | 33146a7f02123584a84e1bf60d7404b0e3796de9 [diff] |
Don't use writeData to write the document in GM. https://codereview.chromium.org/14824003/ git-svn-id: http://skia.googlecode.com/svn/trunk@9013 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp index 87bd0c7..9459d1a 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp
@@ -358,7 +358,7 @@ const SkDynamicMemoryWStream& document) { SkFILEWStream stream(path.c_str()); SkAutoDataUnref data(document.copyToData()); - return stream.writeData(data.get()); + return stream.write(data->data(), data->size()); } /**