aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkOpContour.h
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2017-04-19 15:09:48 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-19 20:36:15 +0000
commitecc364c42691f24b41a672de1636b3a5f181160a (patch)
tree0cdf5ad810cc3b83d353ac72ae97d43130eb54ae /src/pathops/SkOpContour.h
parent66f2332b1e34610cb78d0ced9740e3455521c4fb (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/SkOpContour.h')
-rw-r--r--src/pathops/SkOpContour.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h
index c283226590..17effc6197 100644
--- a/src/pathops/SkOpContour.h
+++ b/src/pathops/SkOpContour.h
@@ -45,8 +45,8 @@ public:
}
SkOpSegment& appendSegment() {
- SkOpSegment* result = fCount++
- ? SkOpTAllocator<SkOpSegment>::Allocate(this->globalState()->allocator()) : &fHead;
+ SkOpSegment* result = fCount++ ? this->globalState()->allocator()->make<SkOpSegment>()
+ : &fHead;
result->setPrev(fTail);
if (fTail) {
fTail->setNext(result);
@@ -391,7 +391,7 @@ protected:
class SkOpContourHead : public SkOpContour {
public:
SkOpContour* appendContour() {
- SkOpContour* contour = SkOpTAllocator<SkOpContour>::New(this->globalState()->allocator());
+ SkOpContour* contour = this->globalState()->allocator()->make<SkOpContour>();
contour->setNext(nullptr);
SkOpContour* prev = this;
SkOpContour* next;