diff options
author | msarett <msarett@google.com> | 2016-03-09 07:14:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-09 07:14:41 -0800 |
commit | c3adf2fb41d8f2be2724a998ed2aa03b48a10a99 (patch) | |
tree | 5a7a0b143dcea949a396ea7bd6c53930312efccd | |
parent | e699d0cd25fd059e3f0c4949e613e50c83a52179 (diff) |
Deprecate SkImageDecoder
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1776153003
Review URL: https://codereview.chromium.org/1776153003
-rw-r--r-- | include/core/SkImageDecoder.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/core/SkImageDecoder.h b/include/core/SkImageDecoder.h index 5060a1e599..7a90964b13 100644 --- a/include/core/SkImageDecoder.h +++ b/include/core/SkImageDecoder.h @@ -21,6 +21,8 @@ class SkStreamRewindable; /** \class SkImageDecoder + DEPRECATED Please use SkImage::NewFromEncoded() or SkImageGenerator::NewFromEncoded(). + Base class for decoding compressed images into a SkBitmap */ class SkImageDecoder : SkNoncopyable { @@ -225,6 +227,8 @@ public: /** Given a stream, this will try to find an appropriate decoder object. If none is found, the method returns NULL. + + DEPRECATED Please use SkImage::NewFromEncoded() or SkImageGenerator::NewFromEncoded(). */ static SkImageDecoder* Factory(SkStreamRewindable*); @@ -235,6 +239,8 @@ public: @param format On success, if format is non-null, it is set to the format of the decoded file. On failure it is ignored. + + DEPRECATED Do not use. */ static bool DecodeFile(const char file[], SkBitmap* bitmap, SkColorType pref, Mode, Format* format = NULL); @@ -249,6 +255,8 @@ public: @param format On success, if format is non-null, it is set to the format of the decoded buffer. On failure it is ignored. + + DEPRECATED Please use SkImage::NewFromEncoded() or SkImageGenerator::NewFromEncoded(). */ static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap, SkColorType pref, Mode, Format* format = NULL); @@ -263,6 +271,8 @@ public: @param format On success, if format is non-null, it is set to the format of the decoded stream. On failure it is ignored. + + DEPRECATED Please use SkImage::NewFromEncoded() or SkImageGenerator::NewFromEncoded(). */ static bool DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap, SkColorType pref, Mode, Format* format = NULL); |