diff options
author | robertphillips <robertphillips@google.com> | 2016-04-28 15:09:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-28 15:09:34 -0700 |
commit | 4df1656f0f728ed428c3ab8f7beb19703b27c28e (patch) | |
tree | 6c3c7fd910308f6e2b12a05df43be1f7cc279825 /src/core/SkSpecialSurface.h | |
parent | 175dd9b5e3d7d749738dac743d2ac360b5340187 (diff) |
Tighten up SkSpecialSurface factory functions
This is split out of https://codereview.chromium.org/1930013002/ ((Mostly) Retract GrRenderTarget from SkGpuDevice)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1925313002
Review-Url: https://codereview.chromium.org/1925313002
Diffstat (limited to 'src/core/SkSpecialSurface.h')
-rw-r--r-- | src/core/SkSpecialSurface.h | 11 |
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 /** |