Index: include/gpu/GrGpuResource.h |
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h |
index c81e02261864d135bfd2d640a8804c09453fd2c1..626f027ff35d96907434c6be746cc662ee671453 100644 |
--- a/include/gpu/GrGpuResource.h |
+++ b/include/gpu/GrGpuResource.h |
@@ -186,7 +186,7 @@ protected: |
GrGpuResource(GrGpu*, bool isWrapped); |
virtual ~GrGpuResource(); |
- bool isInCache() const { return NULL != fCacheEntry; } |
+ bool isInCache() const { return SkToBool(fCacheEntry); } |
GrGpu* getGpu() const { return fGpu; } |