Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 753f422e79b4815616e5b10caa1e621b5a3d0ef0..24ac6d33124b82a237f3bfffd6a07d25bcdb8e64 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -120,9 +120,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; |
} |