Don't use writeData to write the document in GM.
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 6 May 2013 14:28:43 +0000 (14:28 +0000)
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 6 May 2013 14:28:43 +0000 (14:28 +0000)
https://codereview.chromium.org/14824003/

git-svn-id: http://skia.googlecode.com/svn/trunk@9013 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/gmmain.cpp

index 87bd0c7..9459d1a 100644 (file)
@@ -358,7 +358,7 @@ public:
                                const SkDynamicMemoryWStream& document) {
         SkFILEWStream stream(path.c_str());
         SkAutoDataUnref data(document.copyToData());
-        return stream.writeData(data.get());
+        return stream.write(data->data(), data->size());
     }
 
     /**