From 1ba1d372c2727db56021d0687825320b12d10d4e Mon Sep 17 00:00:00 2001 From: jvanverth Date: Thu, 4 Aug 2016 12:30:31 -0700 Subject: Get Mac viewer working with SDL Also fixes SkiaSDLExample. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2210603003 Review-Url: https://codereview.chromium.org/2210603003 --- example/SkiaSDLExample.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example') diff --git a/example/SkiaSDLExample.cpp b/example/SkiaSDLExample.cpp index da5f2dc9c1..0072f0f595 100644 --- a/example/SkiaSDLExample.cpp +++ b/example/SkiaSDLExample.cpp @@ -20,7 +20,7 @@ #elif defined(SK_BUILD_FOR_UNIX) #include #elif defined(SK_BUILD_FOR_MAC) -#include +#include #endif /* @@ -224,7 +224,7 @@ int main(int argc, char** argv) { SkPaint paint; // create a surface for CPU rasterization - SkAutoTUnref cpuSurface(SkSurface::NewRaster(canvas->imageInfo())); + sk_sp cpuSurface(SkSurface::MakeRaster(canvas->imageInfo())); SkCanvas* offscreen = cpuSurface->getCanvas(); offscreen->save(); @@ -232,7 +232,7 @@ int main(int argc, char** argv) { offscreen->drawPath(create_star(), paint); offscreen->restore(); - SkAutoTUnref image(cpuSurface->newImageSnapshot()); + sk_sp image = cpuSurface->makeImageSnapshot(); int rotation = 0; while (!state.fQuit) { // Our application loop -- cgit v1.2.3