diff options
author | Greg Daniel <egdaniel@google.com> | 2017-10-06 15:59:27 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-06 20:28:00 +0000 |
commit | e1da1d9a7dfa6c9ebdcbd2845acebd045edd2a6f (patch) | |
tree | 9d7b53269a0b9d96a43358377d9906b774af3a29 /src/image/SkImage_Lazy.cpp | |
parent | 567d6f4b4bd9ef50fa09c1449d6789ed701fc079 (diff) |
Add option to create a deferred render target context with mips
We need this since we have texture generators that draw the base level
but nothing more. Thus we want them to be able to directly draw into
a pre allocated mipped target instead of doing a copy later.
TBR: bsalomon@google.com
Bug: skia:
Change-Id: I1dfae0da7153b21b30fdfa51a7061fc255739a1e
Reviewed-on: https://skia-review.googlesource.com/54100
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/image/SkImage_Lazy.cpp')
-rw-r--r-- | src/image/SkImage_Lazy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/SkImage_Lazy.cpp b/src/image/SkImage_Lazy.cpp index 26a1ef9f80..5e3c037402 100644 --- a/src/image/SkImage_Lazy.cpp +++ b/src/image/SkImage_Lazy.cpp @@ -850,7 +850,7 @@ sk_sp<GrTextureProxy> SkImage_Lazy::lockTextureProxy(GrContext* ctx, // generate the rest of the mips. SkASSERT(willBeMipped); SkASSERT(!proxy->isMipMapped()); - if (auto mippedProxy = GrCopyBaseMipMapToTextureProxy(ctx, proxy.get(), dstColorSpace)) { + if (auto mippedProxy = GrCopyBaseMipMapToTextureProxy(ctx, proxy.get())) { set_key_on_proxy(ctx->resourceProvider(), mippedProxy.get(), proxy.get(), key); return mippedProxy; } |