Convert GrCrash->SkFAIL GrDebugCrash->SkDEBUGFAIL
R=robertphillips@google.com, reed@google.com, mtklein@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/257393004
git-svn-id: http://skia.googlecode.com/svn/trunk@14460 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/GrResourceCacheBench.cpp b/bench/GrResourceCacheBench.cpp
index 8eed0cd..e808cd7 100644
--- a/bench/GrResourceCacheBench.cpp
+++ b/bench/GrResourceCacheBench.cpp
@@ -116,11 +116,11 @@
GrResourceKey key = TextureResource::ComputeKey(desc);
GrResource* item = cache->find(key);
if (NULL == item) {
- GrCrash("cache add does not work as expected");
+ SkFAIL("cache add does not work as expected");
return;
}
if (static_cast<TextureResource*>(item)->fID != k) {
- GrCrash("cache add does not work as expected");
+ SkFAIL("cache add does not work as expected");
return;
}
}
@@ -130,11 +130,11 @@
GrResourceKey key = StencilResource::ComputeKey(w, h, s);
GrResource* item = cache->find(key);
if (NULL == item) {
- GrCrash("cache add does not work as expected");
+ SkFAIL("cache add does not work as expected");
return;
}
if (static_cast<TextureResource*>(item)->fID != k) {
- GrCrash("cache add does not work as expected");
+ SkFAIL("cache add does not work as expected");
return;
}
}
@@ -147,7 +147,7 @@
GrResourceKey key = TextureResource::ComputeKey(desc);
GrResource* item = cache->find(key);
if (NULL != item) {
- GrCrash("cache add does not work as expected");
+ SkFAIL("cache add does not work as expected");
return;
}
}
@@ -158,7 +158,7 @@
GrResourceKey key = StencilResource::ComputeKey(w, h, s);
GrResource* item = cache->find(key);
if (NULL != item) {
- GrCrash("cache add does not work as expected");
+ SkFAIL("cache add does not work as expected");
return;
}
}