Index: tests/SerializationTest.cpp |
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp |
index d6a88cf46587daa006131175103ce2537e31f0b3..eca9e64dbe5b02e7fb6322297baf2384cbea2c4b 100644 |
--- a/tests/SerializationTest.cpp |
+++ b/tests/SerializationTest.cpp |
@@ -242,10 +242,10 @@ static void TestBitmapSerialization(const SkBitmap& validBitmap, |
const SkBitmap& invalidBitmap, |
bool shouldSucceed, |
skiatest::Reporter* reporter) { |
- SkAutoTUnref<SkImage> validImage(SkImage::NewFromBitmap(validBitmap)); |
- SkAutoTUnref<SkImageFilter> validBitmapSource(SkImageSource::Create(validImage)); |
- SkAutoTUnref<SkImage> invalidImage(SkImage::NewFromBitmap(invalidBitmap)); |
- SkAutoTUnref<SkImageFilter> invalidBitmapSource(SkImageSource::Create(invalidImage)); |
+ sk_sp<SkImage> validImage(SkImage::MakeFromBitmap(validBitmap)); |
+ SkAutoTUnref<SkImageFilter> validBitmapSource(SkImageSource::Create(validImage.get())); |
+ sk_sp<SkImage> invalidImage(SkImage::MakeFromBitmap(invalidBitmap)); |
+ SkAutoTUnref<SkImageFilter> invalidBitmapSource(SkImageSource::Create(invalidImage.get())); |
SkAutoTUnref<SkXfermode> mode(SkXfermode::Create(SkXfermode::kSrcOver_Mode)); |
SkAutoTUnref<SkImageFilter> xfermodeImageFilter( |
SkXfermodeImageFilter::Create(mode, invalidBitmapSource, validBitmapSource)); |