diff options
author | Brian Salomon <bsalomon@google.com> | 2019-01-24 16:03:07 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2019-01-25 00:29:27 +0000 |
commit | aa6ca0a8bfc13050dfa3855fcaa6264586dd2b4b (patch) | |
tree | 0b3e6d5392263eee627d45a2aebd4d5f10b57c9a /tools | |
parent | 7150513754f5c3bc4848364121e7399b498d4918 (diff) | |
download | skqp-aa6ca0a8bfc13050dfa3855fcaa6264586dd2b4b.tar.gz |
Require explicit GrWrapCacheable specification in more places.
Make all wrapped resources be kUnbudgetedUncacheable except those
created by AHardwareBuffer image generators and as backings for promise
images.
Make all non-wrapped unbudgeted resources be kUnbudgetedUncacheable.
Update unit tests to mostly use GrWrapCacheable::kNo except where they
are testing the distinction.
Update unit tests for new expectations.
Bug: chromium:922851
Change-Id: I4d3bdaa161ffc76390f26334bcb7e2b47dd9319d
Reviewed-on: https://skia-review.googlesource.com/c/185004
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gpu/ProxyUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpu/ProxyUtils.cpp b/tools/gpu/ProxyUtils.cpp index a1f4df6cdb..c3fca8400b 100644 --- a/tools/gpu/ProxyUtils.cpp +++ b/tools/gpu/ProxyUtils.cpp @@ -33,10 +33,10 @@ sk_sp<GrTextureProxy> MakeTextureProxyFromData(GrContext* context, bool isRT, in // Adopt ownership so our caller doesn't have to worry about deleting the backend texture. if (isRT) { proxy = context->contextPriv().proxyProvider()->wrapRenderableBackendTexture( - backendTex, origin, 1, kAdopt_GrWrapOwnership); + backendTex, origin, 1, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo); } else { proxy = context->contextPriv().proxyProvider()->wrapBackendTexture( - backendTex, origin, kAdopt_GrWrapOwnership, kRW_GrIOType); + backendTex, origin, kAdopt_GrWrapOwnership, GrWrapCacheable::kNo, kRW_GrIOType); } if (!proxy) { |