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

Unified Diff: include/core/SkDocument.h

Issue 691783002: Add SkDocument::getStream() method. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698