Index: experimental/iOSSampleApp/SkSampleUIView.mm |
diff --git a/experimental/iOSSampleApp/SkSampleUIView.mm b/experimental/iOSSampleApp/SkSampleUIView.mm |
index 8bf7c904e13a0b1362bc306744d9661a696964eb..b4c6b1cd2be983ec1df4c03c7cf4e3a526bf016b 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, |