diff options
Diffstat (limited to 'tools/kilobench/kilobench.cpp')
-rw-r--r-- | tools/kilobench/kilobench.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/kilobench/kilobench.cpp b/tools/kilobench/kilobench.cpp index 06cb33fb49..c0422d81eb 100644 --- a/tools/kilobench/kilobench.cpp +++ b/tools/kilobench/kilobench.cpp @@ -182,9 +182,9 @@ struct GPUTarget { uint32_t flags = useDfText ? SkSurfaceProps::kUseDeviceIndependentFonts_Flag : 0; SkSurfaceProps props(flags, SkSurfaceProps::kLegacyFontHost_InitType); - fSurface.reset(SkSurface::NewRenderTarget(context, - SkBudgeted::kNo, info, - numSamples, &props)); + fSurface.reset(SkSurface::MakeRenderTarget(context, + SkBudgeted::kNo, info, + numSamples, &props).release()); fGL = factory->getContextInfo(ctxType, ctxOptions).fGLContext; if (!fSurface.get()) { return false; |