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/SkPathOpsOp.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/SkPathOpsOp.cpp')
-rw-r--r-- | src/pathops/SkPathOpsOp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathops/SkPathOpsOp.cpp b/src/pathops/SkPathOpsOp.cpp index f6b08ead07..fd08aaaad1 100644 --- a/src/pathops/SkPathOpsOp.cpp +++ b/src/pathops/SkPathOpsOp.cpp @@ -217,7 +217,8 @@ extern void (*gVerboseFinalize)(); bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result SkDEBUGPARAMS(bool skipAssert) SkDEBUGPARAMS(const char* testName)) { - SkChunkAlloc allocator(4096); // FIXME: add a constant expression here, tune + char storage[4096]; + SkArenaAlloc allocator(storage); // FIXME: add a constant expression here, tune SkOpContour contour; SkOpContourHead* contourList = static_cast<SkOpContourHead*>(&contour); SkOpGlobalState globalState(contourList, &allocator |