Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: include/core/SkStream.h

Issue 1530783003: add fsync to try to get complete skps from webpage picture capture (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: exclude android and friends that may not define fileno Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/core/SkStream.h
diff --git a/include/core/SkStream.h b/include/core/SkStream.h
index 44de6e87e11427ef567127bd6adc47616732bba5..f4c1b0db32c3e10a893b12455f453fc7f0120b8c 100644
--- a/include/core/SkStream.h
+++ b/include/core/SkStream.h
@@ -192,6 +192,7 @@ public:
virtual bool write(const void* buffer, size_t size) = 0;
virtual void newline();
virtual void flush();
+ virtual void sync();
virtual size_t bytesWritten() const = 0;
@@ -360,6 +361,7 @@ public:
bool write(const void* buffer, size_t size) override;
void flush() override;
+ void sync() override;
size_t bytesWritten() const override;
private:
« no previous file with comments | « include/core/SkOSFile.h ('k') | src/core/SkStream.cpp » ('j') | src/ports/SkOSFile_stdio.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698