Index: src/utils/SkGatherPixelRefsAndRects.h |
diff --git a/src/utils/SkGatherPixelRefsAndRects.h b/src/utils/SkGatherPixelRefsAndRects.h |
index 5d980aaf5fd44080560899763a7fddb05ea4f2ec..e1e5ccd92e22f55c2756a7b8a10c5fca5f5d1cce 100644 |
--- a/src/utils/SkGatherPixelRefsAndRects.h |
+++ b/src/utils/SkGatherPixelRefsAndRects.h |
@@ -103,7 +103,7 @@ protected: |
} |
SkRect pathBounds = path.getBounds(); |
- if (NULL != prePathMatrix) { |
+ if (prePathMatrix) { |
prePathMatrix->mapRect(&pathBounds); |
} |
@@ -295,7 +295,7 @@ private: |
static bool GetBitmapFromPaint(const SkPaint &paint, SkBitmap* bitmap) { |
SkShader* shader = paint.getShader(); |
- if (NULL != shader) { |
+ if (shader) { |
if (SkShader::kNone_GradientType == shader->asAGradient(NULL)) { |
return SkShader::kNone_BitmapType != shader->asABitmap(bitmap, NULL, NULL); |
} |