diff options
author | 2018-06-26 14:38:34 -0700 | |
---|---|---|
committer | 2018-06-27 01:08:45 +0000 | |
commit | c421ca1d6e41214f09c0e6311c8519a15e44edd4 (patch) | |
tree | ae029083d130acb979f9e1c15c862f6436908d7b /tools/gpu/ProxyUtils.cpp | |
parent | ef12509ff2668027664308653ced36039af800ad (diff) |
gpu: Expose GrContextPriv::abandoned in the public API.
TBR=bsalomon@google.com
Bug: 854416
Change-Id: Iab71ca6e4724a925b0b9791267aac5ddc34f5b15
Reviewed-on: https://skia-review.googlesource.com/137692
Reviewed-by: Khusal Sagar <khushalsagar@chromium.org>
Commit-Queue: Khusal Sagar <khushalsagar@chromium.org>
Diffstat (limited to 'tools/gpu/ProxyUtils.cpp')
-rw-r--r-- | tools/gpu/ProxyUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpu/ProxyUtils.cpp b/tools/gpu/ProxyUtils.cpp index 64af648068..dab3ca6b82 100644 --- a/tools/gpu/ProxyUtils.cpp +++ b/tools/gpu/ProxyUtils.cpp @@ -18,7 +18,7 @@ sk_sp<GrTextureProxy> MakeTextureProxyFromData(GrContext* context, bool isRT, in GrColorType ct, GrSRGBEncoded srgbEncoded, GrSurfaceOrigin origin, const void* data, size_t rowBytes) { - if (context->contextPriv().abandoned()) { + if (context->abandoned()) { return nullptr; } |