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

Unified Diff: src/images/SkImageDecoder_libgif.cpp

Issue 1018953003: Add SkEncodedFormat, used by SkCodec. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use a common enum for SkImageEncoder and SkImageDecoder and SkCodec Created 5 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
Index: src/images/SkImageDecoder_libgif.cpp
diff --git a/src/images/SkImageDecoder_libgif.cpp b/src/images/SkImageDecoder_libgif.cpp
index b0ed81037302aff2c4d1c1debbe5a33318490faa..3b6ba805c1345ac6f8f30020277d1847d52933a0 100644
--- a/src/images/SkImageDecoder_libgif.cpp
+++ b/src/images/SkImageDecoder_libgif.cpp
@@ -19,8 +19,8 @@
class SkGIFImageDecoder : public SkImageDecoder {
public:
- Format getFormat() const SK_OVERRIDE {
- return kGIF_Format;
+ SkEncodedFormat getFormat() const SK_OVERRIDE {
+ return kGIF_SkEncodedFormat;
}
protected:
@@ -531,11 +531,11 @@ static SkImageDecoder* sk_libgif_dfactory(SkStreamRewindable* stream) {
static SkImageDecoder_DecodeReg gReg(sk_libgif_dfactory);
-static SkImageDecoder::Format get_format_gif(SkStreamRewindable* stream) {
+static SkEncodedFormat get_format_gif(SkStreamRewindable* stream) {
if (is_gif(stream)) {
- return SkImageDecoder::kGIF_Format;
+ return kGIF_SkEncodedFormat;
}
- return SkImageDecoder::kUnknown_Format;
+ return kUnknown_SkEncodedFormat;
}
static SkImageDecoder_FormatReg gFormatReg(get_format_gif);

Powered by Google App Engine
This is Rietveld 408576698