Index: bench/GrResourceCacheBench.cpp |
diff --git a/bench/GrResourceCacheBench.cpp b/bench/GrResourceCacheBench.cpp |
index 068aff22d46854a8392a9b731687f30d9fd712f2..d86ccf4b0b218d6340e8caf2dbb90f2d35adb407 100644 |
--- a/bench/GrResourceCacheBench.cpp |
+++ b/bench/GrResourceCacheBench.cpp |
@@ -146,7 +146,7 @@ static void check_cache_contents_or_die(GrResourceCache* cache, int k) { |
desc.fHeight |= 1; |
GrResourceKey key = TextureResource::ComputeKey(desc); |
GrGpuResource* item = cache->find(key); |
- if (NULL != item) { |
+ if (item) { |
SkFAIL("cache add does not work as expected"); |
return; |
} |
@@ -157,7 +157,7 @@ static void check_cache_contents_or_die(GrResourceCache* cache, int k) { |
h |= 1; |
GrResourceKey key = StencilResource::ComputeKey(w, h, s); |
GrGpuResource* item = cache->find(key); |
- if (NULL != item) { |
+ if (item) { |
SkFAIL("cache add does not work as expected"); |
return; |
} |