diff options
author | Mike Reed <reed@google.com> | 2017-07-13 13:28:14 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-13 18:20:02 +0000 |
commit | 41ed7f33792c4c32b8444230b8b59cab5e29e45e (patch) | |
tree | 8da1b367fb9c60110daa881060e94ec6979d9386 /src/image | |
parent | 38a10ad434917681520cacb94050d14b2f24dd06 (diff) |
remove dead code for legacy image encode api
Bug: skia:
Change-Id: Ia90d776946281473c56cd93006df1b523475696a
Reviewed-on: https://skia-review.googlesource.com/23022
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/image')
-rw-r--r-- | src/image/SkImage.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp index 8cb526746c..841e83cc2b 100644 --- a/src/image/SkImage.cpp +++ b/src/image/SkImage.cpp @@ -138,21 +138,6 @@ sk_sp<SkImage> SkImage::MakeFromEncoded(sk_sp<SkData> encoded, const SkIRect* su return SkImage::MakeFromGenerator(SkImageGenerator::MakeFromEncoded(encoded), subset); } -#ifdef SK_SUPPORT_LEGACY_IMAGE_ENCODE_API -SkData* SkImage::encode(SkEncodedImageFormat format, int quality) const { - return this->encodeToData(format, quality).release(); -} -SkData* SkImage::encode(SkPixelSerializer* serial) const { - return this->encodeToData(serial).release(); -} -SkData* SkImage::refEncoded() const { - return this->refEncodedData().release(); -} -SkData* SkPixelSerializer::encode(const SkPixmap& pixmap) { - return this->encodeToData(pixmap).release(); -} -#endif - /////////////////////////////////////////////////////////////////////////////////////////////////// const char* SkImage::toString(SkString* str) const { |