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:
parent
7fd93e349a
commit
141a14e3e6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user