From 64778d9f275d8ce3df8f4ab39ff334b7ef5b70d3 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Tue, 11 Jul 2017 16:00:24 +0000 Subject: Revert "Change image encode api to return sk_sp" This reverts commit dc799550e2d9965aa5b7cda496465b2a76b310a5. Reason for revert: need to fix sites in Document_none Original change's description: > Change image encode api to return sk_sp > > Bug: skia: > Change-Id: I238289bc630be27795cb1384955dd6e887597c05 > Reviewed-on: https://skia-review.googlesource.com/22208 > Commit-Queue: Mike Reed > Reviewed-by: Florin Malita TBR=scroggo@google.com,fmalita@chromium.org,reed@google.com Change-Id: Id7f67027e5f1405a60fdbde29863cdf8daef0cb7 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia: Reviewed-on: https://skia-review.googlesource.com/22280 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- bench/PDFBench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench') diff --git a/bench/PDFBench.cpp b/bench/PDFBench.cpp index b3714524aa..fa7cfe9fed 100644 --- a/bench/PDFBench.cpp +++ b/bench/PDFBench.cpp @@ -110,7 +110,7 @@ protected: void onDelayedSetup() override { sk_sp img(GetResourceAsImage("mandrill_512_q075.jpg")); if (!img) { return; } - sk_sp encoded = img->refEncodedData(); + sk_sp encoded(img->refEncoded()); SkASSERT(encoded); if (!encoded) { return; } fImage = img; -- cgit v1.2.3