aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-07-11 11:20:21 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-11 15:43:21 +0000
commitdc799550e2d9965aa5b7cda496465b2a76b310a5 (patch)
tree9f5f2a1c9da5bbeab2363bae6bd8cd933019dfc3 /bench
parentf02fa6ffe72c596b87e277193ed82d288dbee18f (diff)
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 <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'bench')
-rw-r--r--bench/PDFBench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/PDFBench.cpp b/bench/PDFBench.cpp
index fa7cfe9fed..b3714524aa 100644
--- a/bench/PDFBench.cpp
+++ b/bench/PDFBench.cpp
@@ -110,7 +110,7 @@ protected:
void onDelayedSetup() override {
sk_sp<SkImage> img(GetResourceAsImage("mandrill_512_q075.jpg"));
if (!img) { return; }
- sk_sp<SkData> encoded(img->refEncoded());
+ sk_sp<SkData> encoded = img->refEncodedData();
SkASSERT(encoded);
if (!encoded) { return; }
fImage = img;