diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-16 07:51:56 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-16 12:31:50 +0000 |
commit | 0c984a0af30989fe20b1f8af18867983a88c48b6 (patch) | |
tree | 5504e293a1c0d864d4c35a481d31beb55acb0c6b /src/gpu/GrImageTextureMaker.cpp | |
parent | f49b1e0ad955c437675eae6e8bd64a2e0941e204 (diff) |
More pre-emptive proxification
These methods are not called yet. This CL is broken out of: https://skia-review.googlesource.com/c/8823/ (Remove GrFragmentProcessor-derived class' GrTexture-based ctors)
Change-Id: I2bf38202750e91e66a8044a790ccfe34d59e08a7
Reviewed-on: https://skia-review.googlesource.com/9683
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrImageTextureMaker.cpp')
-rw-r--r-- | src/gpu/GrImageTextureMaker.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrImageTextureMaker.cpp b/src/gpu/GrImageTextureMaker.cpp index fa96656e8c..a7fc1a353c 100644 --- a/src/gpu/GrImageTextureMaker.cpp +++ b/src/gpu/GrImageTextureMaker.cpp @@ -36,6 +36,14 @@ GrTexture* GrImageTextureMaker::refOriginalTexture(bool willBeMipped, SkColorSpa dstColorSpace); } +sk_sp<GrTextureProxy> GrImageTextureMaker::refOriginalTextureProxy(bool willBeMipped, + SkColorSpace* dstColorSpace) { + sk_sp<GrTexture> tex(fCacher->lockTexture(this->context(), fOriginalKey, fClient, fCachingHint, + willBeMipped, dstColorSpace)); + + return GrSurfaceProxy::MakeWrapped(std::move(tex)); +} + void GrImageTextureMaker::makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey, SkColorSpace* dstColorSpace) { if (fOriginalKey.isValid() && SkImage::kAllow_CachingHint == fCachingHint) { |