diff options
author | caryclark <caryclark@google.com> | 2015-12-16 13:41:23 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-16 13:41:23 -0800 |
commit | 7471fa4920a3573afcf6e2d94722e73d3d9b12a7 (patch) | |
tree | 62b0a14f5349e23aad6e78d6b9ab8cd7ed6fc29c /src/core/SkStream.cpp | |
parent | 64673afe1a25ddd2d82d955ff7d9f7b3e026205f (diff) |
add fsync to try to get complete skps from webpage picture capture
R=reed@google.com,mtklein@google.com
BUG=skia:4691
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1530783003
Review URL: https://codereview.chromium.org/1530783003
Diffstat (limited to 'src/core/SkStream.cpp')
-rw-r--r-- | src/core/SkStream.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp index fff8f33822..ef4c6baae4 100644 --- a/src/core/SkStream.cpp +++ b/src/core/SkStream.cpp @@ -463,6 +463,14 @@ void SkFILEWStream::flush() } } +void SkFILEWStream::fsync() +{ + flush(); + if (fFILE) { + sk_fsync(fFILE); + } +} + //////////////////////////////////////////////////////////////////////// SkMemoryWStream::SkMemoryWStream(void* buffer, size_t size) |