Index: include/gpu/GrContextFactory.h |
diff --git a/include/gpu/GrContextFactory.h b/include/gpu/GrContextFactory.h |
index 01e0239b1a16d966587994263c1f4290bf246e94..66b6de2f1573bc05f6b3bf783bbd51971a840bf5 100644 |
--- a/include/gpu/GrContextFactory.h |
+++ b/include/gpu/GrContextFactory.h |
@@ -107,7 +107,11 @@ public: |
void abandonContexts() { |
for (int i = 0; i < fContexts.count(); ++i) { |
robertphillips
2014/07/29 14:32:31
NULL != ?
bsalomon
2014/07/29 14:43:15
Done.
|
- SkSafeSetNull(fContexts[i].fGLContext); |
+ if (fContexts[i].fGLContext) { |
+ fContexts[i].fGLContext->testAbandon(); |
robertphillips
2014/07/29 14:32:31
SkSafeSetNull(fContexts[i].fGLContext); ?
bsalomon
2014/07/29 14:43:15
Done.
|
+ fContexts[i].fGLContext->unref(); |
+ fContexts[i].fGLContext = NULL; |
+ } |
fContexts[i].fGrContext->abandonContext(); |
} |
} |