aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsAngleIdeas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PathOpsAngleIdeas.cpp')
-rw-r--r--tests/PathOpsAngleIdeas.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/PathOpsAngleIdeas.cpp b/tests/PathOpsAngleIdeas.cpp
index 003242fbc0..a408a3c3b1 100644
--- a/tests/PathOpsAngleIdeas.cpp
+++ b/tests/PathOpsAngleIdeas.cpp
@@ -419,7 +419,7 @@ static void makeSegment(SkOpContour* contour, const SkDQuad& quad, SkPoint short
}
static void testQuadAngles(skiatest::Reporter* reporter, const SkDQuad& quad1, const SkDQuad& quad2,
- int testNo, SkArenaAlloc* allocator) {
+ int testNo, SkChunkAlloc* allocator) {
SkPoint shortQuads[2][3];
SkOpContourHead contour;
@@ -558,8 +558,7 @@ static void testQuadAngles(skiatest::Reporter* reporter, const SkDQuad& quad1, c
}
DEF_TEST(PathOpsAngleOverlapHullsOne, reporter) {
- char storage[4096];
- SkArenaAlloc allocator(storage);
+ SkChunkAlloc allocator(4096);
// gPathOpsAngleIdeasVerbose = true;
const QuadPts quads[] = {
{{{939.4808349609375, 914.355224609375}, {-357.7921142578125, 590.842529296875}, {736.8936767578125, -350.717529296875}}},
@@ -574,8 +573,7 @@ DEF_TEST(PathOpsAngleOverlapHullsOne, reporter) {
}
DEF_TEST(PathOpsAngleOverlapHulls, reporter) {
- char storage[4096];
- SkArenaAlloc allocator(storage);
+ SkChunkAlloc allocator(4096);
if (!gPathOpsAngleIdeasVerbose) { // takes a while to run -- so exclude it by default
return;
}