diff options
author | Greg Daniel <egdaniel@google.com> | 2017-04-13 09:54:12 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-13 15:19:57 +0000 |
commit | fc978fde4868079d22c2e708b7e4378cbfb22767 (patch) | |
tree | e5b64cc88f6e4bab68bfafcffd87955cefb4ff60 /include | |
parent | 178ce3eddd326feee608af65cdeedb08e1af91c3 (diff) |
Store the GrBackend we are using on GrContext
As we start adding more functionality to external clients and passing
data around, we will need to know what backend we are working with at
a layer higher that GrGpu.
TBR=bsalomon@google.com
Bug: skia:
Change-Id: Ifee527ea0c1046469401a39e0500f84a46bb3081
Reviewed-on: https://skia-review.googlesource.com/13275
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index d820202ca8..f2ba24d4db 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -334,6 +334,8 @@ private: GrAuditTrail fAuditTrail; + GrBackend fBackend; + // TODO: have the GrClipStackClip use renderTargetContexts and rm this friending friend class GrContextPriv; |