From ecc364c42691f24b41a672de1636b3a5f181160a Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Wed, 19 Apr 2017 15:09:48 -0400 Subject: Remove SkOpTAllocator Have the callsites of SkOpTAllocator call SkArenaAlloc directly. Bug: skia: Change-Id: Ic54e92c3e9a0abed038aa3ae40e8a195895af99d Reviewed-on: https://skia-review.googlesource.com/13870 Reviewed-by: Cary Clark Commit-Queue: Herb Derby --- tests/PathOpsAngleTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/PathOpsAngleTest.cpp') diff --git a/tests/PathOpsAngleTest.cpp b/tests/PathOpsAngleTest.cpp index 4226a77a79..cfa8fc0e7b 100644 --- a/tests/PathOpsAngleTest.cpp +++ b/tests/PathOpsAngleTest.cpp @@ -445,7 +445,7 @@ DEF_TEST(PathOpsAngleAfter, reporter) { contour.reset(); for (int index3 = 0; index3 < 3; ++index3) { IntersectData& data = dataArray[index2 + index3]; - SkPoint* temp = (SkPoint*) SkOpTAllocator::Allocate(&allocator); + SkPoint* temp = (SkPoint*) allocator.make(); for (int idx2 = 0; idx2 < data.fPtCount; ++idx2) { temp[idx2] = data.fPts.fPts[idx2].asSkPoint(); } @@ -485,7 +485,7 @@ void SkOpSegment::debugAddAngle(double startT, double endT) { : this->addT(startT); SkOpPtT* endPtT = endT == 0 ? fHead.ptT() : endT == 1 ? fTail.ptT() : this->addT(endT); - SkOpAngle* angle = SkOpTAllocator::Allocate(this->globalState()->allocator()); + SkOpAngle* angle = this->globalState()->allocator()->make(); SkOpSpanBase* startSpan = &fHead; while (startSpan->ptT() != startPtT) { startSpan = startSpan->upCast()->next(); -- cgit v1.2.3