diff options
author | Herb Derby <herb@google.com> | 2017-04-19 15:09:48 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-19 20:36:15 +0000 |
commit | ecc364c42691f24b41a672de1636b3a5f181160a (patch) | |
tree | 0cdf5ad810cc3b83d353ac72ae97d43130eb54ae /src/pathops/SkOpSegment.cpp | |
parent | 66f2332b1e34610cb78d0ced9740e3455521c4fb (diff) |
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 <caryclark@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/pathops/SkOpSegment.cpp')
-rw-r--r-- | src/pathops/SkOpSegment.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pathops/SkOpSegment.cpp b/src/pathops/SkOpSegment.cpp index 1dbeaf6507..f266ed949f 100644 --- a/src/pathops/SkOpSegment.cpp +++ b/src/pathops/SkOpSegment.cpp @@ -286,8 +286,7 @@ void SkOpSegment::calcAngles() { SkOpSpanBase* spanBase = fHead.next(); while (spanBase != &fTail) { if (activePrior) { - SkOpAngle* priorAngle = SkOpTAllocator<SkOpAngle>::Allocate( - this->globalState()->allocator()); + SkOpAngle* priorAngle = this->globalState()->allocator()->make<SkOpAngle>(); priorAngle->set(spanBase, prior); spanBase->setFromAngle(priorAngle); } @@ -295,8 +294,7 @@ void SkOpSegment::calcAngles() { bool active = !span->isCanceled(); SkOpSpanBase* next = span->next(); if (active) { - SkOpAngle* angle = SkOpTAllocator<SkOpAngle>::Allocate( - this->globalState()->allocator()); + SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); angle->set(span, next); span->setToAngle(angle); } |