"NULL !=" = NULL
R=reed@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/544233002
diff --git a/src/gpu/SkGrPixelRef.cpp b/src/gpu/SkGrPixelRef.cpp
index f56c3b6..d5be965 100644
--- a/src/gpu/SkGrPixelRef.cpp
+++ b/src/gpu/SkGrPixelRef.cpp
@@ -125,7 +125,7 @@
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 @@
}
GrTexture* SkGrPixelRef::getTexture() {
- if (NULL != fSurface) {
+ if (fSurface) {
return fSurface->asTexture();
}
return NULL;
@@ -159,7 +159,7 @@
}
int left, top, width, height;
- if (NULL != subset) {
+ if (subset) {
left = subset->fLeft;
width = subset->width();
top = subset->fTop;