Index: tests/SkColor4fTest.cpp |
diff --git a/tests/SkColor4fTest.cpp b/tests/SkColor4fTest.cpp |
index 0b5a4e05f7d6adf90ffbe13487039b0cb530b5df..94e1b688165e67d3f6f6161d2ab945d6ee57c345 100644 |
--- a/tests/SkColor4fTest.cpp |
+++ b/tests/SkColor4fTest.cpp |
@@ -108,7 +108,7 @@ static sk_sp<SkShader> make_image_sh() { |
SkPackARGB32(0xFF, 0xBB, 0x88, 0x55), |
SkPackARGB32(0xFF, 0xBB, 0x88, 0x55), |
}; |
- SkAutoTUnref<SkImage> image(SkImage::NewRasterCopy(info, pixels, sizeof(SkPMColor) * 2)); |
+ sk_sp<SkImage> image(SkImage::MakeRasterCopy(SkPixmap(info, pixels, sizeof(SkPMColor) * 2))); |
return image->makeShader(SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); |
} |