Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 8844f1ac838a887ce2a437b49e55cd7f6abc70e0..aa0b8d13ed5f4790836f9fc9cee7758d7a474f64 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -127,6 +127,13 @@ GrContext::~GrContext() { |
fCaps->unref(); |
} |
+GrContextThreadSafeProxy* GrContext::threadSafeProxy() { |
+ if (!fThreadSafeProxy) { |
+ fThreadSafeProxy.reset(new GrContextThreadSafeProxy(fCaps, this->uniqueID())); |
+ } |
+ return fThreadSafeProxy; |
+} |
+ |
void GrContext::abandonContext() { |
ASSERT_SINGLE_OWNER |