diff options
Diffstat (limited to 'tests/PathOpsAngleTest.cpp')
-rw-r--r-- | tests/PathOpsAngleTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<FourPoints>::Allocate(&allocator); + SkPoint* temp = (SkPoint*) allocator.make<FourPoints>(); 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<SkOpAngle>::Allocate(this->globalState()->allocator()); + SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); SkOpSpanBase* startSpan = &fHead; while (startSpan->ptT() != startPtT) { startSpan = startSpan->upCast()->next(); |