Index: tests/IndexedPngOverflowTest.cpp |
diff --git a/tests/IndexedPngOverflowTest.cpp b/tests/IndexedPngOverflowTest.cpp |
index 78f8d94b1a41ac5b6c99f2d8616045e56a85cc7c..f516898a1a5ea706fc12afdbb95868b1caf54e4c 100644 |
--- a/tests/IndexedPngOverflowTest.cpp |
+++ b/tests/IndexedPngOverflowTest.cpp |
@@ -5,10 +5,9 @@ |
* found in the LICENSE file. |
*/ |
+#include "CodecPriv.h" |
#include "SkBitmap.h" |
#include "SkCanvas.h" |
-#include "SkForceLinking.h" |
-#include "SkImageDecoder.h" |
#include "SkImageInfo.h" |
#include "SkSurface.h" |
#include "Test.h" |
@@ -31,10 +30,7 @@ unsigned char gPng[] = { |
DEF_TEST(IndexedPngOverflow, reporter) { |
SkBitmap image; |
- SkForceLinking(false); |
- bool success = SkImageDecoder::DecodeMemory( |
- gPng, sizeof(gPng), &image, SkColorType::kUnknown_SkColorType, |
- SkImageDecoder::kDecodePixels_Mode); |
+ bool success = decode_memory(gPng, sizeof(gPng), &image); |
REPORTER_ASSERT(reporter, success); |
SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(SkImageInfo::MakeN32Premul(20, 1))); |