aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/GrResourceCacheBench.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-30 14:17:00 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-30 14:17:00 +0000
commit88cb22b6b4816c7a9ca6c5b795965b4606f9eb7b (patch)
treea69a96179cdeba81fc41bad9fd0a13a2fe92a626 /bench/GrResourceCacheBench.cpp
parentd3571ed359604e65ae33460eea07ebaa5ba07581 (diff)
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
Diffstat (limited to 'bench/GrResourceCacheBench.cpp')
-rw-r--r--bench/GrResourceCacheBench.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/bench/GrResourceCacheBench.cpp b/bench/GrResourceCacheBench.cpp
index 8eed0cd9ed..e808cd7836 100644
--- a/bench/GrResourceCacheBench.cpp
+++ b/bench/GrResourceCacheBench.cpp
@@ -116,11 +116,11 @@ static void check_cache_contents_or_die(GrResourceCache* cache, int k) {
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 @@ static void check_cache_contents_or_die(GrResourceCache* cache, int k) {
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 @@ static void check_cache_contents_or_die(GrResourceCache* cache, int k) {
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 @@ static void check_cache_contents_or_die(GrResourceCache* cache, int k) {
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;
}
}