Index: tests/PictureTest.cpp |
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp |
index 23ff6893c0f4d867fb7d1754c5ba6e75d1e2d99f..49bc57b1af29960e5cafa0cc709440d2171f0559 100644 |
--- a/tests/PictureTest.cpp |
+++ b/tests/PictureTest.cpp |
@@ -420,10 +420,9 @@ static void test_bitmap_with_encoded_data(skiatest::Reporter* reporter) { |
context.fReporter = reporter; |
SkSetErrorCallback(assert_one_parse_error_cb, &context); |
SkMemoryStream pictureStream(picture1); |
- bool success; |
SkClearLastError(); |
- SkPicture pictureFromStream(&pictureStream, &success, NULL); |
- REPORTER_ASSERT(reporter, success); |
+ SkAutoUnref pictureFromStream(SkPicture::CreateFromStream(&pictureStream, NULL)); |
+ REPORTER_ASSERT(reporter, pictureFromStream.get() != NULL); |
SkClearLastError(); |
SkSetErrorCallback(NULL, NULL); |
} |