aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkSurface.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-04-13 14:29:25 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-13 14:29:25 -0700
commit7e68ab73186ab02a6030d3959e7372f983f85af5 (patch)
tree973b20fb786c0e2ac42344652ec07a36d112b3f8 /include/core/SkSurface.h
parent0e3c55431b463b5575983c0c875909e08a3562bf (diff)
Remove GrTextureStorageAllocator. This was added from Chromium but never used and not expected to be used.
Diffstat (limited to 'include/core/SkSurface.h')
-rw-r--r--include/core/SkSurface.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index ec76d26888..427f52dcc0 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -112,13 +112,9 @@ public:
/**
* Return a new surface whose contents will be drawn to an offscreen
* render target, allocated by the surface.
- *
- * The GrTextureStorageAllocator will be reused if SkImage snapshots create
- * additional textures.
*/
static sk_sp<SkSurface> MakeRenderTarget(
- GrContext*, SkBudgeted, const SkImageInfo&, int sampleCount, const SkSurfaceProps*,
- GrTextureStorageAllocator = GrTextureStorageAllocator());
+ GrContext*, SkBudgeted, const SkImageInfo&, int sampleCount, const SkSurfaceProps*);
static sk_sp<SkSurface> MakeRenderTarget(GrContext* gr, SkBudgeted b, const SkImageInfo& info) {
return MakeRenderTarget(gr, b, info, 0, nullptr);
@@ -172,8 +168,7 @@ public:
return MakeFromBackendTextureAsRenderTarget(ctx, desc, props).release();
}
static SkSurface* NewRenderTarget(GrContext* ctx, SkBudgeted b, const SkImageInfo& info,
- int sampleCount, const SkSurfaceProps* props = NULL,
- GrTextureStorageAllocator a = GrTextureStorageAllocator()) {
+ int sampleCount, const SkSurfaceProps* props = NULL) {
return MakeRenderTarget(ctx, b, info, sampleCount, props, a).release();
}
static SkSurface* NewRenderTarget(GrContext* gr, SkBudgeted b, const SkImageInfo& info) {