aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkGatherPixelRefsAndRects.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/SkGatherPixelRefsAndRects.h')
-rw-r--r--src/utils/SkGatherPixelRefsAndRects.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/SkGatherPixelRefsAndRects.h b/src/utils/SkGatherPixelRefsAndRects.h
index 5d980aaf5f..e1e5ccd92e 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);
}