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

Unified Diff: src/gpu/GrGpuResource.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 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/GrGpuFactory.cpp ('k') | src/gpu/GrGpuResourceRef.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpuResource.cpp
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp
index 53782a77043e07b592b68e90b548e30fae7a04d8..df8301c506bad4544b159a85efb2c7447969917a 100644
--- a/src/gpu/GrGpuResource.cpp
+++ b/src/gpu/GrGpuResource.cpp
@@ -40,7 +40,7 @@ void GrGpuResource::release() {
SkASSERT(fGpu);
this->onRelease();
get_resource_cache(fGpu)->resourceAccess().removeResource(this);
- fGpu = NULL;
+ fGpu = nullptr;
fGpuMemorySize = 0;
}
@@ -48,7 +48,7 @@ void GrGpuResource::abandon() {
SkASSERT(fGpu);
this->onAbandon();
get_resource_cache(fGpu)->resourceAccess().removeResource(this);
- fGpu = NULL;
+ fGpu = nullptr;
fGpuMemorySize = 0;
}
@@ -62,7 +62,7 @@ const GrContext* GrGpuResource::getContext() const {
if (fGpu) {
return fGpu->getContext();
} else {
- return NULL;
+ return nullptr;
}
}
@@ -70,7 +70,7 @@ GrContext* GrGpuResource::getContext() {
if (fGpu) {
return fGpu->getContext();
} else {
- return NULL;
+ return nullptr;
}
}
« no previous file with comments | « src/gpu/GrGpuFactory.cpp ('k') | src/gpu/GrGpuResourceRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698