diff options
author | Brian Osman <brianosman@google.com> | 2018-07-02 13:21:05 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-02 18:11:21 +0000 |
commit | d614d4213755e52da2eb6f6d54d376d09c82d2bf (patch) | |
tree | ac7231574993c0d1cad442de3e1fa8c778c79d0a /src | |
parent | 8529080afa799d6b2146aed26a073b5cb4c4b195 (diff) |
Remove unused generateTextureProxyForParams
Change-Id: Ia599d8db0072b1f3629e05c5bd6bb6e7492cad28
Reviewed-on: https://skia-review.googlesource.com/138937
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrTextureMaker.cpp | 12 | ||||
-rw-r--r-- | src/gpu/GrTextureMaker.h | 14 |
2 files changed, 0 insertions, 26 deletions
diff --git a/src/gpu/GrTextureMaker.cpp b/src/gpu/GrTextureMaker.cpp index 47eeeaaeb6..f9ee7585d2 100644 --- a/src/gpu/GrTextureMaker.cpp +++ b/src/gpu/GrTextureMaker.cpp @@ -158,15 +158,3 @@ std::unique_ptr<GrFragmentProcessor> GrTextureMaker::createFragmentProcessor( domainMode, domain, filterOrNullForBicubic); return GrColorSpaceXformEffect::Make(std::move(fp), texColorSpace.get(), dstColorSpace); } - -sk_sp<GrTextureProxy> GrTextureMaker::generateTextureProxyForParams(const CopyParams& copyParams, - bool willBeMipped, - SkColorSpace* dstColorSpace) { - sk_sp<GrTextureProxy> original(this->refOriginalTextureProxy(willBeMipped, dstColorSpace, - AllowedTexGenType::kAny)); - if (!original) { - return nullptr; - } - - return CopyOnGpu(fContext, std::move(original), copyParams, willBeMipped); -} diff --git a/src/gpu/GrTextureMaker.h b/src/gpu/GrTextureMaker.h index 6c8cd0407e..a365b50444 100644 --- a/src/gpu/GrTextureMaker.h +++ b/src/gpu/GrTextureMaker.h @@ -48,20 +48,6 @@ protected: */ virtual sk_sp<SkColorSpace> getColorSpace(SkColorSpace* dstColorSpace) = 0; - /** - * Return a new (uncached) texture that is the stretch of the maker's original. - * - * The base-class handles general logic for this, and only needs access to the following - * method: - * - refOriginalTextureProxy() - * - * Subclass may override this if they can handle creating the texture more directly than - * by copying. - */ - virtual sk_sp<GrTextureProxy> generateTextureProxyForParams(const CopyParams&, - bool willBeMipped, - SkColorSpace* dstColorSpace); - GrContext* context() const { return fContext; } private: |