Index: src/gpu/GrRODrawState.h |
diff --git a/src/gpu/GrRODrawState.h b/src/gpu/GrRODrawState.h |
index 88392ba35f9efb0360f059e5c52aeff588f16099..19bbfc160dee52cf0bdb2a30c29f9bc4720be4e5 100644 |
--- a/src/gpu/GrRODrawState.h |
+++ b/src/gpu/GrRODrawState.h |
@@ -126,7 +126,7 @@ public: |
(this->hasGeometryProcessor() ? 1 : 0); |
} |
- bool hasGeometryProcessor() const { return NULL != fGeometryProcessor.get(); } |
+ bool hasGeometryProcessor() const { return SkToBool(fGeometryProcessor.get()); } |
const GrEffectStage* getGeometryProcessor() const { return fGeometryProcessor.get(); } |
const GrEffectStage& getColorStage(int stageIdx) const { return fColorStages[stageIdx]; } |
const GrEffectStage& getCoverageStage(int stageIdx) const { return fCoverageStages[stageIdx]; } |