diff options
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; |