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

Unified Diff: tests/SpecialImageTest.cpp

Issue 1810813003: update callsites for Make image factories (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: start to take advantage of sk_sp drawImage Created 4 years, 9 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 | « tests/SkResourceCacheTest.cpp ('k') | tests/SurfaceTest.cpp » ('j') | 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 7511e6297123a82b6d78ccfadf3ba4f670e5072c..03a496dbbaf747b669212efff94abb6ce98fd254 100644
--- a/tests/SpecialImageTest.cpp
+++ b/tests/SpecialImageTest.cpp
@@ -119,19 +119,19 @@ DEF_TEST(SpecialImage_Raster, reporter) {
DEF_TEST(SpecialImage_Image, reporter) {
SkBitmap bm = create_bm();
- SkAutoTUnref<SkImage> fullImage(SkImage::NewFromBitmap(bm));
+ sk_sp<SkImage> fullImage(SkImage::MakeFromBitmap(bm));
SkAutoTUnref<SkSpecialImage> fullSImage(SkSpecialImage::NewFromImage(
nullptr,
SkIRect::MakeWH(kFullSize, kFullSize),
- fullImage));
+ fullImage.get()));
const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
{
SkAutoTUnref<SkSpecialImage> subSImg1(SkSpecialImage::NewFromImage(nullptr,
subset,
- fullImage));
+ fullImage.get()));
test_image(subSImg1, reporter, true, false, kPad, kFullSize);
}
« no previous file with comments | « tests/SkResourceCacheTest.cpp ('k') | tests/SurfaceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698