Add SkDocument::getStream() method.
Motivation: SkDocument_PDF can be refactored to stream all PDF objects as SkCanvas calls are made, to save memory! BUG=skia:3030 BUG=skia:2683 Review URL: https://codereview.chromium.org/691783002
This commit is contained in:
parent
650076027f
commit
902d4d18de
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user