Index: tests/KtxTest.cpp |
diff --git a/tests/KtxTest.cpp b/tests/KtxTest.cpp |
index 99bae83329a7c802443217d107aa4dcf79b313fd..7220cbf32e45d3891e3b01cbc7de1aea6c900379 100644 |
--- a/tests/KtxTest.cpp |
+++ b/tests/KtxTest.cpp |
@@ -142,40 +142,3 @@ DEF_TEST(KtxReadUnpremul, reporter) { |
row += decodedBitmap.rowBytes(); |
} |
} |
- |
-// For KtxReexportPKM, below. Defined in SkImageDecoder_ktx.cpp |
-extern SkImageGenerator* decoder_image_generator(SkData*); |
- |
-/** |
- * Finally, make sure that if we get ETC1 data from a PKM file that we can then |
- * accurately write it out into a KTX file (i.e. transferring the ETC1 data from |
- * the PKM to the KTX should produce an identical KTX to the one we have on file) |
- */ |
-DEF_TEST(KtxReexportPKM, reporter) { |
- SkString pkmFilename = GetResourcePath("mandrill_128.pkm"); |
- |
- // Load PKM file into a bitmap |
- SkBitmap etcBitmap; |
- SkAutoTUnref<SkData> fileData(SkData::NewFromFileName(pkmFilename.c_str())); |
- if (nullptr == fileData) { |
- SkDebugf("KtxReexportPKM: can't load test file %s\n", pkmFilename.c_str()); |
- return; |
- } |
- |
- bool installDiscardablePixelRefSuccess = |
- SkDEPRECATED_InstallDiscardablePixelRef(decoder_image_generator(fileData), &etcBitmap); |
- if (!installDiscardablePixelRefSuccess) { |
- ERRORF(reporter, "failed to create discardable pixelRef from KTX file"); |
- return; |
- } |
- |
- // Write the bitmap out to a KTX file. |
- SkData *ktxDataPtr = SkImageEncoder::EncodeData(etcBitmap, SkImageEncoder::kKTX_Type, 0); |
- SkAutoDataUnref newKtxData(ktxDataPtr); |
- REPORTER_ASSERT(reporter, ktxDataPtr); |
- |
- // See is this data is identical to data in existing ktx file. |
- SkString ktxFilename = GetResourcePath("mandrill_128.ktx"); |
- SkAutoDataUnref oldKtxData(SkData::NewFromFileName(ktxFilename.c_str())); |
- REPORTER_ASSERT(reporter, oldKtxData->equals(newKtxData)); |
-} |