diff options
author | Mike Reed <reed@google.com> | 2016-12-15 13:02:33 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-15 19:01:02 +0000 |
commit | 5adaf8bf24e7581104c41c868188602624e8ba86 (patch) | |
tree | 134e6d015f48fe1bbb246029494cd7cb2c741009 /include | |
parent | eaef5493ca51ccc722f594ed21d331d40bffd14c (diff) |
remove unused dynamicwstream.snapshotAsData()
Checking to invalidate this on every write() call has a measurable cost, so removing it both simplifies the class and speeds it up.
BUG=skia:
Change-Id: Idf0baa265c9a0b5d26d82fce948c61ed9b0810b1
Reviewed-on: https://skia-review.googlesource.com/6096
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkStream.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/core/SkStream.h b/include/core/SkStream.h index d8eeb6c6d4..089a4ca6f9 100644 --- a/include/core/SkStream.h +++ b/include/core/SkStream.h @@ -385,7 +385,6 @@ public: void copyTo(void* dst) const; void writeToStream(SkWStream* dst) const; - sk_sp<SkData> snapshotAsData() const; // Return the contents as SkData, and then reset the stream. sk_sp<SkData> detachAsData(); @@ -400,9 +399,6 @@ private: Block* fHead; Block* fTail; size_t fBytesWritten; - mutable sk_sp<SkData> fCopy; // is invalidated if we write after it is created - - void invalidateCopy(); // For access to the Block type. friend class SkBlockMemoryStream; |