diff options
author | 2016-10-31 15:11:04 -0400 | |
---|---|---|
committer | 2016-10-31 19:35:15 +0000 | |
commit | 09d9435835f48b06954904f16d14c1c2eeaaad2e (patch) | |
tree | 717ad84a3204cdb81646e0d9dee23977965ce2e5 /include/core/SkStream.h | |
parent | fc49b403eb3353fdefe97672017df10b64dee95a (diff) |
remove lots of legacy flags
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4209
Change-Id: I49ae36a9b2bb51a6470638d3264923ff4a4dea0a
Reviewed-on: https://skia-review.googlesource.com/4209
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkStream.h')
-rw-r--r-- | include/core/SkStream.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/core/SkStream.h b/include/core/SkStream.h index 7afce71240..9fbd694cf0 100644 --- a/include/core/SkStream.h +++ b/include/core/SkStream.h @@ -289,14 +289,6 @@ public: /** If copyData is true, the stream makes a private copy of the data. */ SkMemoryStream(const void* data, size_t length, bool copyData = false); -#ifdef SK_SUPPORT_LEGACY_STREAM_DATA - /** Use the specified data as the memory for this stream. - * The stream will call ref() on the data (assuming it is not NULL). - * DEPRECATED - */ - SkMemoryStream(SkData*); -#endif - /** Creates the stream to read from the specified data */ SkMemoryStream(sk_sp<SkData>); @@ -314,22 +306,6 @@ public: sk_sp<SkData> asData() const { return fData; } void setData(sk_sp<SkData>); -#ifdef SK_SUPPORT_LEGACY_STREAM_DATA - /** Return the stream's data in a SkData. - * The caller must call unref() when it is finished using the data. - */ - SkData* copyToData() const { return asData().release(); } - - /** - * Use the specified data as the memory for this stream. - * The stream will call ref() on the data (assuming it is not NULL). - * The function returns the data parameter as a convenience. - */ - SkData* setData(SkData* data) { - this->setData(sk_ref_sp(data)); - return data; - } -#endif void skipToAlign4(); const void* getAtPos(); @@ -414,15 +390,6 @@ public: sk_sp<SkData> snapshotAsData() const; // Return the contents as SkData, and then reset the stream. sk_sp<SkData> detachAsData(); -#ifdef SK_SUPPORT_LEGACY_STREAM_DATA - /** - * Return a copy of the data written so far. This call is responsible for - * calling unref() when they are finished with the data. - */ - SkData* copyToData() const { - return snapshotAsData().release(); - } -#endif /** Reset, returning a reader stream with the current content. */ SkStreamAsset* detachAsStream(); |