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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 649533003: C++11 declares a type safe null pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Presubmit errors Created 6 years, 2 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
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
index 9b4c7b6157b0ce1bc993432f18dc15c3f335f22e..de29d5afde39e38e35bbd0c640b21e050f2b452f 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
@@ -68,7 +68,7 @@ class WebGraphicsContext3DCommandBufferImpl
// function.
lock_.AssertAcquired();
if (contexts_.empty())
- return NULL;
+ return nullptr;
return contexts_.front();
}
@@ -127,8 +127,8 @@ class WebGraphicsContext3DCommandBufferImpl
// problem communicating with the GPU process.
bool IsCommandBufferContextLost();
- // Create & initialize a WebGraphicsContext3DCommandBufferImpl. Return NULL
- // on any failure.
+ // Create & initialize a WebGraphicsContext3DCommandBufferImpl.
+ // Return nullptr on any failure.
static CONTENT_EXPORT WebGraphicsContext3DCommandBufferImpl*
CreateOffscreenContext(
GpuChannelHost* host,

Powered by Google App Engine
This is Rietveld 408576698