aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkSpecialSurface.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-28 15:09:34 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-28 15:09:34 -0700
commit4df1656f0f728ed428c3ab8f7beb19703b27c28e (patch)
tree6c3c7fd910308f6e2b12a05df43be1f7cc279825 /src/core/SkSpecialSurface.h
parent175dd9b5e3d7d749738dac743d2ac360b5340187 (diff)
Tighten up SkSpecialSurface factory functions
Diffstat (limited to 'src/core/SkSpecialSurface.h')
-rw-r--r--src/core/SkSpecialSurface.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/core/SkSpecialSurface.h b/src/core/SkSpecialSurface.h
index 2135347e35..d971648202 100644
--- a/src/core/SkSpecialSurface.h
+++ b/src/core/SkSpecialSurface.h
@@ -52,17 +52,12 @@ public:
#if SK_SUPPORT_GPU
/**
- * Use an existing (renderTarget-capable) GrTexture as the backing store.
- */
- static sk_sp<SkSpecialSurface> MakeFromTexture(const SkIRect& subset, sk_sp<GrTexture>,
- const SkSurfaceProps* = nullptr);
-
- /**
* Allocate a new GPU-backed SkSpecialSurface. If the requested surface cannot
* be created, nullptr will be returned.
*/
- static sk_sp<SkSpecialSurface> MakeRenderTarget(GrContext*, const GrSurfaceDesc&,
- const SkSurfaceProps* = nullptr);
+ static sk_sp<SkSpecialSurface> MakeRenderTarget(GrContext*,
+ int width, int height,
+ GrPixelConfig config);
#endif
/**