diff --git a/experimental/iOSSampleApp/SkSampleUIView.mm b/experimental/iOSSampleApp/SkSampleUIView.mm index 8bf7c904e1..b4c6b1cd2b 100644 --- a/experimental/iOSSampleApp/SkSampleUIView.mm +++ b/experimental/iOSSampleApp/SkSampleUIView.mm @@ -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,