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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc

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/gpu_memory_buffer_impl_surface_texture.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
index 52e0362913300b61ee5545f032cd84e3ff5ba9e5..0d08c552f4ffbe9c4d38322cc305cebf65810077 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
@@ -163,10 +163,10 @@ void* GpuMemoryBufferImplSurfaceTexture::Map() {
DCHECK(!mapped_);
DCHECK(native_window_);
ANativeWindow_Buffer buffer;
- int status = ANativeWindow_lock(native_window_, &buffer, NULL);
+ int status = ANativeWindow_lock(native_window_, &buffer, nullptr);
if (status) {
VLOG(1) << "ANativeWindow_lock failed with error code: " << status;
- return NULL;
+ return nullptr;
}
DCHECK_LE(size_.width(), buffer.stride);

Powered by Google App Engine
This is Rietveld 408576698