diff options
author | reed <reed@google.com> | 2016-09-22 14:12:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-22 14:12:47 -0700 |
commit | d14df7c700bf77c8c42c791ca7a865c1bbc96679 (patch) | |
tree | 553e6ab4662bc2737c7fccc8f90ba780726c853b /include | |
parent | ae6e4869c94596eb3bf5069888b32ab06199aec0 (diff) |
document.close from bool to void
Nothing meaningful is returned, it is inconsistent with the bulk of the rest of skia's api. The C api is waiting on this change as well.
Required chrome CL: https://codereview.chromium.org/2355343003/
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2354403002
Review-Url: https://codereview.chromium.org/2354403002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkDocument.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/core/SkDocument.h b/include/core/SkDocument.h index ba870120c2..418a837437 100644 --- a/include/core/SkDocument.h +++ b/include/core/SkDocument.h @@ -175,9 +175,8 @@ public: * or stream holding the document's contents. After close() the document * can no longer add new pages. Deleting the document will automatically * call close() if need be. - * Returns true on success or false on failure. */ - bool close(); + void close(); /** * Call abort() to stop producing the document immediately. @@ -195,7 +194,7 @@ protected: virtual SkCanvas* onBeginPage(SkScalar width, SkScalar height, const SkRect& content) = 0; virtual void onEndPage() = 0; - virtual bool onClose(SkWStream*) = 0; + virtual void onClose(SkWStream*) = 0; virtual void onAbort() = 0; // Allows subclasses to write to the stream as pages are written. |