Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2570)

Unified Diff: bench/GrResourceCacheBench.cpp

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/ETCBitmapBench.cpp ('k') | bench/HairlinePathBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « bench/ETCBitmapBench.cpp ('k') | bench/HairlinePathBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698