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

Unified Diff: src/images/SkImageDecoder_libbmp.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_libbmp.cpp
diff --git a/src/images/SkImageDecoder_libbmp.cpp b/src/images/SkImageDecoder_libbmp.cpp
index e28713d8a6d94687fc88fd268bbe529e55aadd19..be1954e94f76e54c303c078aeb93bda3d89ebbdf 100644
--- a/src/images/SkImageDecoder_libbmp.cpp
+++ b/src/images/SkImageDecoder_libbmp.cpp
@@ -19,8 +19,8 @@ class SkBMPImageDecoder : public SkImageDecoder {
public:
SkBMPImageDecoder() {}
- Format getFormat() const SK_OVERRIDE {
- return kBMP_Format;
+ SkEncodedFormat getFormat() const SK_OVERRIDE {
+ return kBMP_SkEncodedFormat;
}
protected:
@@ -53,11 +53,11 @@ static SkImageDecoder* sk_libbmp_dfactory(SkStreamRewindable* stream) {
static SkImageDecoder_DecodeReg gReg(sk_libbmp_dfactory);
-static SkImageDecoder::Format get_format_bmp(SkStreamRewindable* stream) {
+static SkEncodedFormat get_format_bmp(SkStreamRewindable* stream) {
if (is_bmp(stream)) {
- return SkImageDecoder::kBMP_Format;
+ return kBMP_SkEncodedFormat;
}
- return SkImageDecoder::kUnknown_Format;
+ return kUnknown_SkEncodedFormat;
}
static SkImageDecoder_FormatReg gFormatReg(get_format_bmp);

Powered by Google App Engine
This is Rietveld 408576698