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

Unified Diff: src/core/SkStreamPriv.h

Issue 387863005: Move SkPDFStream back to SkStream to save memory. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: AnotherPatchSet Created 6 years, 5 months 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
« no previous file with comments | « src/core/SkStream.cpp ('k') | src/pdf/SkPDFStream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStreamPriv.h
diff --git a/src/core/SkStreamPriv.h b/src/core/SkStreamPriv.h
index 5b5a73adef0f7368bc6df2159af55e116a9d48fd..13a090c3f377e74ee1b02b904fa6228a6aa0031b 100644
--- a/src/core/SkStreamPriv.h
+++ b/src/core/SkStreamPriv.h
@@ -10,6 +10,7 @@
class SkAutoMalloc;
class SkStream;
+class SkStreamRewindable;
class SkData;
/**
@@ -34,4 +35,11 @@ size_t SkCopyStreamToStorage(SkAutoMalloc* storage, SkStream* stream);
*/
SkData *SkCopyStreamToData(SkStream* stream);
+/**
+ * Attempt to convert this stream to a StreamRewindable in the
+ * cheapest possible manner (calling duplicate() if possible, and
+ * otherwise copying to memory).
reed1 2014/07/12 11:05:05 What happens with subsequent reads to the newly re
hal.canary 2014/07/14 14:34:11 Good question. Before http://crrev.com/340783013,
+ */
+SkStreamRewindable* SkStreamRewindableFromSkStream(SkStream* stream);
+
#endif // SkStreamPriv_DEFINED
« no previous file with comments | « src/core/SkStream.cpp ('k') | src/pdf/SkPDFStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698