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
This commit is contained in:
parent
33146a7f02
commit
1ca36ecfd9
@ -358,7 +358,7 @@ public:
|
|||||||
const SkDynamicMemoryWStream& document) {
|
const SkDynamicMemoryWStream& document) {
|
||||||
SkFILEWStream stream(path.c_str());
|
SkFILEWStream stream(path.c_str());
|
||||||
SkAutoDataUnref data(document.copyToData());
|
SkAutoDataUnref data(document.copyToData());
|
||||||
return stream.writeData(data.get());
|
return stream.write(data->data(), data->size());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user