Update iOS to new SkSurface interface

BUG=skia:5558
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2179363003

Review-Url: https://codereview.chromium.org/2179363003
This commit is contained in:
jvanverth 2016-07-26 13:33:07 -07:00 committed by Commit bot
parent 7fd93e349a
commit 141a14e3e6

View File

@ -123,10 +123,12 @@ public:
#if SK_SUPPORT_GPU
if (SampleWindow::IsGpuDeviceType(dType) && fCurContext) {
SkSurfaceProps props(win->getSurfaceProps());
return SkSurface::NewRenderTargetDirect(fCurRenderTarget, &props);
return SkSurface::MakeRenderTargetDirect(fCurRenderTarget,
sk_ref_sp(win->info().colorSpace()),
&props).release();
}
#endif
return NULL;
return nullptr;
}
virtual void publishCanvas(SampleWindow::DeviceType dType,