diff options
author | 2017-02-21 10:19:29 -0500 | |
---|---|---|
committer | 2017-02-21 21:50:27 +0000 | |
commit | 2c6d2bfced6d20703d52ab14a598c76d926f52fb (patch) | |
tree | 5fbd93abca198b263e8d76abbc0576fce482ec2d /src/core/SkSpecialImage.cpp | |
parent | e812d496aaa5e5e9f2117de8f442c297c9cb1367 (diff) |
Remove SkSpecialImage's GrTexture-based ctors
Change-Id: Id71b8ab0477cd1d459089d97af27d63f9f08d21b
Reviewed-on: https://skia-review.googlesource.com/7889
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkSpecialImage.cpp')
-rw-r--r-- | src/core/SkSpecialImage.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp index 7d6dc66d61..c523ae833f 100644 --- a/src/core/SkSpecialImage.cpp +++ b/src/core/SkSpecialImage.cpp @@ -364,17 +364,6 @@ static sk_sp<SkImage> wrap_proxy_in_image(GrContext* context, GrTextureProxy* pr class SkSpecialImage_Gpu : public SkSpecialImage_Base { public: - SkSpecialImage_Gpu(const SkIRect& subset, - uint32_t uniqueID, sk_sp<GrTexture> tex, SkAlphaType at, - sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* props) - : INHERITED(subset, uniqueID, props) - , fContext(tex->getContext()) - , fTextureProxy(GrSurfaceProxy::MakeWrapped(std::move(tex))) - , fAlphaType(at) - , fColorSpace(std::move(colorSpace)) - , fAddedRasterVersionToCache(false) { - } - SkSpecialImage_Gpu(GrContext* context, const SkIRect& subset, uint32_t uniqueID, sk_sp<GrTextureProxy> proxy, SkAlphaType at, sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* props) @@ -527,17 +516,6 @@ private: typedef SkSpecialImage_Base INHERITED; }; -sk_sp<SkSpecialImage> SkSpecialImage::MakeFromGpu(const SkIRect& subset, - uint32_t uniqueID, - sk_sp<GrTexture> tex, - sk_sp<SkColorSpace> colorSpace, - const SkSurfaceProps* props, - SkAlphaType at) { - SkASSERT(rect_fits(subset, tex->width(), tex->height())); - return sk_make_sp<SkSpecialImage_Gpu>(subset, uniqueID, std::move(tex), at, - std::move(colorSpace), props); -} - sk_sp<SkSpecialImage> SkSpecialImage::MakeDeferredFromGpu(GrContext* context, const SkIRect& subset, uint32_t uniqueID, |