Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: include/gpu/GrContextFactory.h

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrContext.h ('k') | include/gpu/GrCoordTransform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « include/gpu/GrContext.h ('k') | include/gpu/GrCoordTransform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698