| Index: include/gpu/GrContextFactory.h
|
| diff --git a/include/gpu/GrContextFactory.h b/include/gpu/GrContextFactory.h
|
| index bc06594c8094c6c3efa44c0801b8c6fbd81c7a7b..d78120ccb0e265682d891bd07bdde5648c64c589 100644
|
| --- a/include/gpu/GrContextFactory.h
|
| +++ b/include/gpu/GrContextFactory.h
|
| @@ -95,11 +95,11 @@ public:
|
|
|
| void destroyContexts() {
|
| for (int i = 0; i < fContexts.count(); ++i) {
|
| - if (NULL != fContexts[i].fGLContext) { // could be abandoned.
|
| + if (fContexts[i].fGLContext) { // could be abandoned.
|
| fContexts[i].fGLContext->makeCurrent();
|
| }
|
| fContexts[i].fGrContext->unref();
|
| - if (NULL != fContexts[i].fGLContext) {
|
| + if (fContexts[i].fGLContext) {
|
| fContexts[i].fGLContext->unref();
|
| }
|
| }
|
| @@ -108,7 +108,7 @@ public:
|
|
|
| void abandonContexts() {
|
| for (int i = 0; i < fContexts.count(); ++i) {
|
| - if (NULL != fContexts[i].fGLContext) {
|
| + if (fContexts[i].fGLContext) {
|
| fContexts[i].fGLContext->testAbandon();
|
| SkSafeSetNull(fContexts[i].fGLContext);
|
| }
|
|
|