Index: include/core/SkStream.h |
=================================================================== |
--- include/core/SkStream.h (revision 8205) |
+++ include/core/SkStream.h (working copy) |
@@ -17,6 +17,13 @@ |
class SK_API SkStream : public SkRefCnt { |
public: |
+ /** |
+ * Attempts to open the specified file, and return a stream to it (using |
+ * mmap if available). On success, the caller must call unref() on the |
+ * returned object. On failure, returns NULL. |
+ */ |
+ static SkStream* NewFromFile(const char path[]); |
+ |
SK_DECLARE_INST_COUNT(SkStream) |
/** Called to rewind to the beginning of the stream. If this cannot be |