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

Unified Diff: tests/SpecialImageTest.cpp

Issue 2158913004: remove unused MakeFromPixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « src/core/SkSpecialImage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SpecialImageTest.cpp
diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp
index 06c852d5116bab377b36b9627ebbc0368479a0e5..d7eb34089b4837a69230307dfdce6028440f6d4d 100644
--- a/tests/SpecialImageTest.cpp
+++ b/tests/SpecialImageTest.cpp
@@ -177,25 +177,6 @@ DEF_TEST(SpecialImage_Image, reporter) {
}
}
-DEF_TEST(SpecialImage_Pixmap, reporter) {
- SkAutoPixmapStorage pixmap;
-
- const SkImageInfo info = SkImageInfo::MakeN32(kFullSize, kFullSize, kOpaque_SkAlphaType);
- pixmap.alloc(info);
- pixmap.erase(SK_ColorGREEN);
-
- const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
-
- pixmap.erase(SK_ColorRED, subset);
-
- {
- sk_sp<SkSpecialImage> img(SkSpecialImage::MakeFromPixmap(subset, pixmap,
- nullptr, nullptr));
- test_image(img, reporter, nullptr, false, kPad, kFullSize);
- }
-}
-
-
#if SK_SUPPORT_GPU
static void test_texture_backed(skiatest::Reporter* reporter,
« no previous file with comments | « src/core/SkSpecialImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698