Index: include/core/SkDocument.h |
diff --git a/include/core/SkDocument.h b/include/core/SkDocument.h |
index dbf4bc5957e77d471b802a16fb0d9f54f652d0e4..bd9e5ec890e2c1afcf0136a1833d0fcc1a6baffa 100644 |
--- a/include/core/SkDocument.h |
+++ b/include/core/SkDocument.h |
@@ -122,6 +122,9 @@ protected: |
virtual bool onClose(SkWStream*) = 0; |
virtual void onAbort() = 0; |
+ // Allows subclasses to write to the stream as pages are written. |
+ SkWStream* getStream() { return fStream; } |
+ |
enum State { |
kBetweenPages_State, |
kInPage_State, |