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

Unified Diff: src/images/SkImageDecoder_astc.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_astc.cpp
diff --git a/src/images/SkImageDecoder_astc.cpp b/src/images/SkImageDecoder_astc.cpp
index 64cdf43e5de7909145cff8deea260de55cee2b6f..1acafb37eff6af44b57cecf2de41d9c15c8fd515 100644
--- a/src/images/SkImageDecoder_astc.cpp
+++ b/src/images/SkImageDecoder_astc.cpp
@@ -19,8 +19,8 @@ class SkASTCImageDecoder : public SkImageDecoder {
public:
SkASTCImageDecoder() { }
- Format getFormat() const SK_OVERRIDE {
- return kASTC_Format;
+ SkEncodedFormat getFormat() const SK_OVERRIDE {
+ return kASTC_SkEncodedFormat;
}
protected:
@@ -193,11 +193,11 @@ static SkImageDecoder* sk_libastc_dfactory(SkStreamRewindable* stream) {
static SkImageDecoder_DecodeReg gReg(sk_libastc_dfactory);
-static SkImageDecoder::Format get_format_astc(SkStreamRewindable* stream) {
+static SkEncodedFormat get_format_astc(SkStreamRewindable* stream) {
if (is_astc(stream)) {
- return SkImageDecoder::kASTC_Format;
+ return kASTC_SkEncodedFormat;
}
- return SkImageDecoder::kUnknown_Format;
+ return kUnknown_SkEncodedFormat;
}
static SkImageDecoder_FormatReg gFormatReg(get_format_astc);

Powered by Google App Engine
This is Rietveld 408576698