diff options
Diffstat (limited to 'src/image/SkSurface_Gpu.cpp')
-rw-r--r-- | src/image/SkSurface_Gpu.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp index 2d5645b2b0..f7a31c009b 100644 --- a/src/image/SkSurface_Gpu.cpp +++ b/src/image/SkSurface_Gpu.cpp @@ -121,9 +121,11 @@ SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget* target, const SkSurf } SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, Budgeted budgeted, const SkImageInfo& info, - int sampleCount, const SkSurfaceProps* props) { - SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(ctx, budgeted, info, sampleCount, props, - SkGpuDevice::kClear_InitContents)); + int sampleCount, const SkSurfaceProps* props, + GrTextureStorageAllocator customAllocator) { + SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create( + ctx, budgeted, info, sampleCount, props, SkGpuDevice::kClear_InitContents, + customAllocator)); if (!device) { return nullptr; } |