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

Unified Diff: src/gpu/gl/GrGLUtil.cpp

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 | « src/gpu/gl/GrGLTexture.cpp ('k') | src/gpu/gl/GrGLVertexArray.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLUtil.cpp
diff --git a/src/gpu/gl/GrGLUtil.cpp b/src/gpu/gl/GrGLUtil.cpp
index 9bc2c5d67a7aa98df5bf0c6e2c5a832bdead3878..1ef66e05d1f43e69a0b23ef9b06c90b0b6d9e430 100644
--- a/src/gpu/gl/GrGLUtil.cpp
+++ b/src/gpu/gl/GrGLUtil.cpp
@@ -40,10 +40,10 @@ void GrGLCheckErr(const GrGLInterface* gl,
uint32_t err = GR_GL_GET_ERROR(gl);
if (GR_GL_NO_ERROR != err) {
GrPrintf("---- glGetError 0x%x(%s)", err, get_error_string(err));
- if (NULL != location) {
+ if (location) {
GrPrintf(" at\n\t%s", location);
}
- if (NULL != call) {
+ if (call) {
GrPrintf("\n\t\t%s", call);
}
GrPrintf("\n");
@@ -167,7 +167,7 @@ GrGLSLVersion GrGLGetGLSLVersionFromString(const char* versionString) {
}
GrGLVendor GrGLGetVendorFromString(const char* vendorString) {
- if (NULL != vendorString) {
+ if (vendorString) {
if (0 == strcmp(vendorString, "ARM")) {
return kARM_GrGLVendor;
}
@@ -188,7 +188,7 @@ GrGLVendor GrGLGetVendorFromString(const char* vendorString) {
}
GrGLRenderer GrGLGetRendererFromString(const char* rendererString) {
- if (NULL != rendererString) {
+ if (rendererString) {
if (0 == strcmp(rendererString, "NVIDIA Tegra 3")) {
return kTegra3_GrGLRenderer;
} else if (0 == strcmp(rendererString, "NVIDIA Tegra")) {
« no previous file with comments | « src/gpu/gl/GrGLTexture.cpp ('k') | src/gpu/gl/GrGLVertexArray.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698