aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/TextBlobTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TextBlobTest.cpp')
-rw-r--r--tests/TextBlobTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TextBlobTest.cpp b/tests/TextBlobTest.cpp
index e0a6c843c9..238d7340b8 100644
--- a/tests/TextBlobTest.cpp
+++ b/tests/TextBlobTest.cpp
@@ -454,8 +454,8 @@ DEF_TEST(TextBlob_serialize, reporter) {
REPORTER_ASSERT(reporter, img0->width() == img1->width());
REPORTER_ASSERT(reporter, img0->height() == img1->height());
- sk_sp<SkData> enc0 = img0->encodeToData();
- sk_sp<SkData> enc1 = img1->encodeToData();
+ sk_sp<SkData> enc0(img0->encode());
+ sk_sp<SkData> enc1(img1->encode());
REPORTER_ASSERT(reporter, enc0->equals(enc1.get()));
if (false) { // in case you want to actually see the images...
SkFILEWStream("textblob_serialize_img0.png").write(enc0->data(), enc0->size());