diff options
author | robertphillips <robertphillips@google.com> | 2016-04-18 14:49:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-18 14:49:57 -0700 |
commit | bde57ed11b8a6bd6da6043189e000c58bf146422 (patch) | |
tree | 798ff75b06c4b51520a6f1ea3cd1666ebe4a7573 /tests | |
parent | c7d01d3e1d3621907c27b283fb7f8b6e177c629d (diff) |
Make SkImageFilter::Cache purging methods pure virtual
This is intended to see if the Windows 10 bots ignoring of the purge methods is a compiler bug.
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1901883002
Review URL: https://codereview.chromium.org/1901883002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ImageFilterCacheTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ImageFilterCacheTest.cpp b/tests/ImageFilterCacheTest.cpp index 1337d016b7..688069ea45 100644 --- a/tests/ImageFilterCacheTest.cpp +++ b/tests/ImageFilterCacheTest.cpp @@ -113,6 +113,7 @@ static void test_explicit_purging(skiatest::Reporter* reporter, SkIPoint offset = SkIPoint::Make(3, 4); cache->set(key1, image.get(), offset); cache->set(key2, image.get(), offset); + SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->count());) SkIPoint foundOffset; @@ -120,11 +121,13 @@ static void test_explicit_purging(skiatest::Reporter* reporter, REPORTER_ASSERT(reporter, cache->get(key2, &foundOffset)); cache->purgeByKeys(&key1, 1); + SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->count());) REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); REPORTER_ASSERT(reporter, cache->get(key2, &foundOffset)); cache->purge(); + SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->count());) REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); REPORTER_ASSERT(reporter, !cache->get(key2, &foundOffset)); |