aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkSpecialSurface.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-25 12:32:54 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-25 12:32:55 -0700
commitc91fd3447e1d3452d5e43e70e371896c80645b61 (patch)
treeec9a701b992bf549c2c220042fa44ce5c8cd8633 /src/core/SkSpecialSurface.h
parent1eca11659e217eca138c230525a52deb3d52b2d3 (diff)
Add another dollop of sk_sp to SkSpecialImage and SkSpecialSurface
Diffstat (limited to 'src/core/SkSpecialSurface.h')
-rw-r--r--src/core/SkSpecialSurface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkSpecialSurface.h b/src/core/SkSpecialSurface.h
index 6ed8a77da5..2135347e35 100644
--- a/src/core/SkSpecialSurface.h
+++ b/src/core/SkSpecialSurface.h
@@ -50,10 +50,11 @@ public:
*/
sk_sp<SkSpecialImage> makeImageSnapshot();
+#if SK_SUPPORT_GPU
/**
* Use an existing (renderTarget-capable) GrTexture as the backing store.
*/
- static sk_sp<SkSpecialSurface> MakeFromTexture(const SkIRect& subset, GrTexture*,
+ static sk_sp<SkSpecialSurface> MakeFromTexture(const SkIRect& subset, sk_sp<GrTexture>,
const SkSurfaceProps* = nullptr);
/**
@@ -62,6 +63,7 @@ public:
*/
static sk_sp<SkSpecialSurface> MakeRenderTarget(GrContext*, const GrSurfaceDesc&,
const SkSurfaceProps* = nullptr);
+#endif
/**
* Use and existing SkBitmap as the backing store.