diff options
author | Robert Phillips <robertphillips@google.com> | 2017-02-21 10:19:29 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-21 21:50:27 +0000 |
commit | 2c6d2bfced6d20703d52ab14a598c76d926f52fb (patch) | |
tree | 5fbd93abca198b263e8d76abbc0576fce482ec2d /src/core/SkSpecialSurface.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/SkSpecialSurface.cpp')
-rw-r--r-- | src/core/SkSpecialSurface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp index ee0b192263..381e3d8eb1 100644 --- a/src/core/SkSpecialSurface.cpp +++ b/src/core/SkSpecialSurface.cpp @@ -139,10 +139,11 @@ public: if (!fRenderTargetContext->asTexture()) { return nullptr; } - sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeFromGpu( + sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeDeferredFromGpu( + fCanvas->getGrContext(), this->subset(), kNeedNewImageUniqueID_SpecialImage, - fRenderTargetContext->asTexture(), + fRenderTargetContext->asTextureProxyRef(), fRenderTargetContext->refColorSpace(), &this->props())); fRenderTargetContext = nullptr; |