diff options
author | 2017-12-08 13:11:11 -0500 | |
---|---|---|
committer | 2017-12-08 18:42:52 +0000 | |
commit | eace8cd22a65b1a47efc100639851f77a50f69b3 (patch) | |
tree | 198a07c1bc83764047eac589e8bbc11f21a6b356 /include | |
parent | 1acd3c7e845572be3fa84022b80643d75dfcfd1a (diff) |
Use sk_sp to own GrCaps in GrContext.
Change-Id: I46cd37132ecdf0f93be4509c6a06fb74cb185076
Reviewed-on: https://skia-review.googlesource.com/82625
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index 32bee50297..02b26a8aa5 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -208,7 +208,7 @@ public: void purgeUnlockedResources(size_t bytesToPurge, bool preferScratchResources); /** Access the context capabilities */ - const GrCaps* caps() const { return fCaps; } + const GrCaps* caps() const { return fCaps.get(); } /** * Returns the recommended sample count for a render target when using this @@ -348,7 +348,7 @@ public: private: sk_sp<GrGpu> fGpu; - const GrCaps* fCaps; + sk_sp<const GrCaps> fCaps; GrResourceCache* fResourceCache; GrResourceProvider* fResourceProvider; |