diff options
author | 2015-08-27 07:41:13 -0700 | |
---|---|---|
committer | 2015-08-27 07:41:16 -0700 | |
commit | 96fcdcc219d2a0d3579719b84b28bede76efba64 (patch) | |
tree | 0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp | |
parent | 435af2f736c85c3274a0c6760a3523810750d237 (diff) |
Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
Diffstat (limited to 'src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp')
-rw-r--r-- | src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp b/src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp index cabd4431eb..8c58a53702 100644 --- a/src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp +++ b/src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp @@ -63,8 +63,8 @@ private: }; GLXGLContext::GLXGLContext(GrGLStandard forcedGpuAPI) - : fContext(NULL) - , fDisplay(NULL) + : fContext(nullptr) + , fDisplay(nullptr) , fPixmap(0) , fGlxPixmap(0) { @@ -270,7 +270,7 @@ GLXGLContext::GLXGLContext(GrGLStandard forcedGpuAPI) } SkAutoTUnref<const GrGLInterface> gl(GrGLCreateNativeInterface()); - if (NULL == gl.get()) { + if (nullptr == gl.get()) { SkDebugf("Failed to create gl interface"); this->destroyGLContext(); return; @@ -297,7 +297,7 @@ void GLXGLContext::destroyGLContext() { if (fContext) { glXDestroyContext(fDisplay, fContext); - fContext = NULL; + fContext = nullptr; } if (fGlxPixmap) { @@ -311,7 +311,7 @@ void GLXGLContext::destroyGLContext() { } XCloseDisplay(fDisplay); - fDisplay = NULL; + fDisplay = nullptr; } } @@ -335,7 +335,7 @@ SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) { GLXGLContext *ctx = new GLXGLContext(forcedGpuAPI); if (!ctx->isValid()) { delete ctx; - return NULL; + return nullptr; } return ctx; } |