| Index: src/image/SkSurface_Gpu.cpp
|
| diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
|
| index 2d5645b2b016d734b2c170881b8e7b276182d6ba..97060b8a1e4173b5a8763ea49199df257461c8f1 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,
|
| + void* customAllocator) {
|
| + SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(
|
| + ctx, budgeted, info, sampleCount, props, SkGpuDevice::kClear_InitContents,
|
| + static_cast<TextureStorageAllocator*>(customAllocator)));
|
| if (!device) {
|
| return nullptr;
|
| }
|
|
|