Index: tests/SpecialImageTest.cpp |
diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp |
index 432adc832735ff8eb1246bf8c104d508f94a063e..bd07115dbfdca82797d7f58b5af05b3f09ec7f7a 100644 |
--- a/tests/SpecialImageTest.cpp |
+++ b/tests/SpecialImageTest.cpp |
@@ -183,23 +183,10 @@ DEF_TEST(SpecialImage_Pixmap, reporter) { |
pixmap.erase(SK_ColorRED, subset); |
{ |
- // The SkAutoPixmapStorage keeps hold of the memory |
sk_sp<SkSpecialImage> img(SkSpecialImage::MakeFromPixmap(nullptr, subset, pixmap, |
nullptr, nullptr)); |
test_image(img, reporter, true, false, kPad, kFullSize); |
} |
- |
- { |
- // The image takes ownership of the memory |
- sk_sp<SkSpecialImage> img(SkSpecialImage::MakeFromPixmap( |
- nullptr, subset, pixmap, |
- [] (void* addr, void*) -> void { |
- sk_free(addr); |
- }, |
- nullptr)); |
- pixmap.release(); |
- test_image(img, reporter, true, false, kPad, kFullSize); |
- } |
} |