Index: tools/kilobench/kilobench.cpp |
diff --git a/tools/kilobench/kilobench.cpp b/tools/kilobench/kilobench.cpp |
index 06cb33fb49324f50263b0b69eb07ecd99cc15668..c0422d81eb6d2bbfbf0bf62990eb1bcd645a6aa9 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; |