BUG=skia:5558
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2179363003
Review-Url: https://codereview.chromium.org/
2179363003
#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,