Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: include/core/SkImageDecoder.h

Issue 1776153003: Deprecate SkImageDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Suggest an alternative Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageDecoder.h
diff --git a/include/core/SkImageDecoder.h b/include/core/SkImageDecoder.h
index 5060a1e599dc31b0ed99c7798221046d59ca9786..7a90964b1389c496fdb5d76fdb99169ebe0eb24f 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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698