diff options
author | Herb Derby <herb@google.com> | 2017-03-07 11:11:47 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-07 17:56:41 +0000 |
commit | c3cc5fa6de0a8237d9241dbf3e6c0786a9040069 (patch) | |
tree | 62f9d4a1aec2b8edb89ef2dc962d126e560f7703 /src/pathops/SkOpContour.cpp | |
parent | 5c7780e350f44c3415ba17304dd50a21da74e051 (diff) |
Move from SkChunkAlloc to SkArenaAlloc for PathOps
Attempt two. Remove ~SkOpContour because it is handled by the SkArenaAlloc.
Change-Id: Id3049db97aebcc1009d403a031f2fac219f58f2f
Reviewed-on: https://skia-review.googlesource.com/9381
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/pathops/SkOpContour.cpp')
-rw-r--r-- | src/pathops/SkOpContour.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathops/SkOpContour.cpp b/src/pathops/SkOpContour.cpp index 62380ab4fa..ea1659ee2b 100644 --- a/src/pathops/SkOpContour.cpp +++ b/src/pathops/SkOpContour.cpp @@ -62,7 +62,7 @@ void SkOpContourBuilder::addCurve(SkPath::Verb verb, const SkPoint pts[4], SkSca this->addLine(pts); return; } - SkChunkAlloc* allocator = fContour->globalState()->allocator(); + SkArenaAlloc* allocator = fContour->globalState()->allocator(); switch (verb) { case SkPath::kQuad_Verb: { SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 3); @@ -106,7 +106,7 @@ void SkOpContourBuilder::addQuad(SkPoint pts[3]) { void SkOpContourBuilder::flush() { if (!fLastIsLine) return; - SkChunkAlloc* allocator = fContour->globalState()->allocator(); + SkArenaAlloc* allocator = fContour->globalState()->allocator(); SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 2); memcpy(ptStorage, fLastLine, sizeof(fLastLine)); (void) fContour->addLine(ptStorage); |