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

Unified Diff: include/core/SkStream.h

Issue 22861028: Handle SkStream::rewind properly. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: New comment for rewind. Created 7 years, 4 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 | « no previous file | src/images/SkImageDecoder_libpng.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkStream.h
diff --git a/include/core/SkStream.h b/include/core/SkStream.h
index d7a105d3b84e1080fdc4157b1d40f52a1c68750c..2091c765df37c12cb8e6ea608f221dcb73466e9e 100644
--- a/include/core/SkStream.h
+++ b/include/core/SkStream.h
@@ -96,7 +96,9 @@ public:
SkData* readData();
//SkStreamRewindable
- /** Rewinds to the beginning of the stream. If this cannot be done, return false. */
+ /** Rewinds to the beginning of the stream. Returns true iff the stream is rewindable
+ * and after this call the stream is at the beginning.
scroggo 2013/08/26 20:44:31 Per discussion with Ben, I modified this comment t
+ */
virtual bool rewind() { return false; }
/** Duplicates this stream. If this cannot be done, returns NULL.
« no previous file with comments | « no previous file | src/images/SkImageDecoder_libpng.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698