Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: experimental/iOSSampleApp/SkSampleUIView.mm

Issue 2179363003: Update iOS to new SkSurface interface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698