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

Unified Diff: src/gpu/SkGrPixelRef.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/SkGr.cpp ('k') | src/gpu/effects/GrConvolutionEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGrPixelRef.cpp
diff --git a/src/gpu/SkGrPixelRef.cpp b/src/gpu/SkGrPixelRef.cpp
index f56c3b63907d202f4dd3f3b500f340c643439e92..d5be965c7f5638a97897093f8eb6a8a951708824 100644
--- a/src/gpu/SkGrPixelRef.cpp
+++ b/src/gpu/SkGrPixelRef.cpp
@@ -125,7 +125,7 @@ SkGrPixelRef::~SkGrPixelRef() {
if (fUnlock) {
GrContext* context = fSurface->getContext();
GrTexture* texture = fSurface->asTexture();
- if (NULL != context && NULL != texture) {
+ if (context && texture) {
context->unlockScratchTexture(texture);
}
}
@@ -133,7 +133,7 @@ SkGrPixelRef::~SkGrPixelRef() {
}
GrTexture* SkGrPixelRef::getTexture() {
- if (NULL != fSurface) {
+ if (fSurface) {
return fSurface->asTexture();
}
return NULL;
@@ -159,7 +159,7 @@ bool SkGrPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) {
}
int left, top, width, height;
- if (NULL != subset) {
+ if (subset) {
left = subset->fLeft;
width = subset->width();
top = subset->fTop;
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | src/gpu/effects/GrConvolutionEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698