aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-06-07 09:56:48 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-07 14:21:28 +0000
commitd07dc361bccbb0d1b07f47de42aceca3cff5c39c (patch)
tree1be3736f828b16a93c114f355bd5be29550d3c8c /tests
parent2525a37c08c07eedfb7e4562f1c5a0800069132b (diff)
clean up some unused parts of SkArenaAlloc
I'm looking at making SkArenaAlloc independent of Skia. Here's a bit of low-hanging fruit. Nothing is using makeSkSp(). Good... it seems real dangerous. Change-Id: Ib7154e7948a3c6d828376ef37935636b3b4695ff Reviewed-on: https://skia-review.googlesource.com/132824 Commit-Queue: Mike Klein <mtklein@chromium.org> Commit-Queue: Herb Derby <herb@google.com> Auto-Submit: Mike Klein <mtklein@chromium.org> Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ArenaAllocTest.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/ArenaAllocTest.cpp b/tests/ArenaAllocTest.cpp
index e4da0b8ad4..adcdb55390 100644
--- a/tests/ArenaAllocTest.cpp
+++ b/tests/ArenaAllocTest.cpp
@@ -172,17 +172,4 @@ DEF_TEST(ArenaAlloc, r) {
REPORTER_ASSERT(r, created == 128);
REPORTER_ASSERT(r, destroyed == 128);
- {
- created = 0;
- destroyed = 0;
- SkSTArenaAlloc<64> arena;
-
- sk_sp<FooRefCnt> f = arena.makeSkSp<FooRefCnt>(4, 5.0f);
- REPORTER_ASSERT(r, f->x == 4);
- REPORTER_ASSERT(r, f->y == 5.0f);
- REPORTER_ASSERT(r, created == 1);
- REPORTER_ASSERT(r, destroyed == 0);
- }
- REPORTER_ASSERT(r, created == 1);
- REPORTER_ASSERT(r, destroyed == 1);
}