| Index: tests/ImageDecodingTest.cpp
|
| diff --git a/tests/ImageDecodingTest.cpp b/tests/ImageDecodingTest.cpp
|
| index b94e29c11d6fd6b7464dc6d4f787c2bf1b21b769..07ba5f6b370c8cd61098ac43809132d346b9d723 100644
|
| --- a/tests/ImageDecodingTest.cpp
|
| +++ b/tests/ImageDecodingTest.cpp
|
| @@ -44,26 +44,26 @@ static SkPMColor premultiply_unpmcolor(SkPMColor c) {
|
| * Return true if this stream format should be skipped, due
|
| * to do being an opaque format or not a valid format.
|
| */
|
| -static bool skip_image_format(SkImageDecoder::Format format) {
|
| +static bool skip_image_format(SkEncodedFormat format) {
|
| switch (format) {
|
| - case SkImageDecoder::kPNG_Format:
|
| - case SkImageDecoder::kWEBP_Format:
|
| + case kPNG_SkEncodedFormat:
|
| + case kWEBP_SkEncodedFormat:
|
| return false;
|
| // Skip unknown since it will not be decoded anyway.
|
| - case SkImageDecoder::kUnknown_Format:
|
| + case kUnknown_SkEncodedFormat:
|
| // Technically ICO and BMP supports alpha channels, but our image
|
| // decoders do not, so skip them as well.
|
| - case SkImageDecoder::kICO_Format:
|
| - case SkImageDecoder::kBMP_Format:
|
| + case kICO_SkEncodedFormat:
|
| + case kBMP_SkEncodedFormat:
|
| // KTX and ASTC are texture formats so it's not particularly clear how to
|
| // decode the alpha from them.
|
| - case SkImageDecoder::kKTX_Format:
|
| - case SkImageDecoder::kASTC_Format:
|
| + case kKTX_SkEncodedFormat:
|
| + case kASTC_SkEncodedFormat:
|
| // The rest of these are opaque.
|
| - case SkImageDecoder::kPKM_Format:
|
| - case SkImageDecoder::kWBMP_Format:
|
| - case SkImageDecoder::kGIF_Format:
|
| - case SkImageDecoder::kJPEG_Format:
|
| + case kPKM_SkEncodedFormat:
|
| + case kWBMP_SkEncodedFormat:
|
| + case kGIF_SkEncodedFormat:
|
| + case kJPEG_SkEncodedFormat:
|
| return true;
|
| }
|
| SkASSERT(false);
|
| @@ -81,7 +81,7 @@ static void compare_unpremul(skiatest::Reporter* reporter, const SkString& filen
|
|
|
| SkFILEStream stream(filename.c_str());
|
|
|
| - SkImageDecoder::Format format = SkImageDecoder::GetStreamFormat(&stream);
|
| + SkEncodedFormat format = SkImageDecoder::GetStreamFormat(&stream);
|
| if (skip_image_format(format)) {
|
| return;
|
| }
|
|
|