Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index a0884f9274964dba1c52034ced82be0ea567d95e..dfb2fce2790a7d678e6b3dca2aedef470b2cf0b5 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -132,11 +132,11 @@ GrContext::~GrContext() { |
fCaps->unref(); |
} |
-GrContextThreadSafeProxy* GrContext::threadSafeProxy() { |
+sk_sp<GrContextThreadSafeProxy> GrContext::threadSafeProxy() { |
if (!fThreadSafeProxy) { |
- fThreadSafeProxy.reset(new GrContextThreadSafeProxy(fCaps, this->uniqueID())); |
+ fThreadSafeProxy.reset(new GrContextThreadSafeProxy(sk_ref_sp(fCaps), this->uniqueID())); |
} |
- return SkRef(fThreadSafeProxy.get()); |
+ return fThreadSafeProxy; |
} |
void GrContext::abandonContext() { |