Index: tests/PictureShaderTest.cpp |
diff --git a/tests/PictureShaderTest.cpp b/tests/PictureShaderTest.cpp |
index 4da7aab5116d1fc481806a04d7cda00d70bda76a..78d59afd411f9e4659319af5abbefe0cbc56ab5f 100644 |
--- a/tests/PictureShaderTest.cpp |
+++ b/tests/PictureShaderTest.cpp |
@@ -31,8 +31,8 @@ DEF_TEST(PictureShader_empty, reporter) { |
SkPictureRecorder factory; |
factory.beginRecording(0, 0, nullptr, 0); |
- sk_sp<SkPicture> picture(factory.endRecording()); |
- paint.setShader(SkShader::MakePictureShader(std::move(picture), SkShader::kClamp_TileMode, |
+ paint.setShader(SkShader::MakePictureShader(factory.finishRecordingAsPicture(), |
+ SkShader::kClamp_TileMode, |
SkShader::kClamp_TileMode, nullptr, nullptr)); |
canvas.drawRect(SkRect::MakeWH(1,1), paint); |