Index: src/core/SkPictureContentInfo.cpp |
diff --git a/src/core/SkPictureContentInfo.cpp b/src/core/SkPictureContentInfo.cpp |
index 1d19f352f4adf806527e6c4fbe33f38a2f19339c..937173c519a2d412a48b77989196f6e66231361f 100644 |
--- a/src/core/SkPictureContentInfo.cpp |
+++ b/src/core/SkPictureContentInfo.cpp |
@@ -27,7 +27,7 @@ bool SkPictureContentInfo::suitableForGpuRasterization(GrContext* context, const |
bool ret = suitableForDash && |
(fNumAAConcavePaths - fNumAAHairlineConcavePaths) |
< kNumAAConcavePaths; |
- if (!ret && NULL != reason) { |
+ if (!ret && reason) { |
if (!suitableForDash) { |
if (0 != sampleCount) { |
*reason = "Can't use multisample on dash effect."; |
@@ -66,7 +66,7 @@ void SkPictureContentInfo::onDrawPath(const SkPath& path, const SkPaint& paint) |
} |
void SkPictureContentInfo::onAddPaintPtr(const SkPaint* paint) { |
- if (NULL != paint && NULL != paint->getPathEffect()) { |
+ if (paint && paint->getPathEffect()) { |
++fNumPaintWithPathEffectUses; |
} |
} |