diff options
author | Herb Derby <herb@google.com> | 2017-03-01 16:48:12 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-06 19:48:56 +0000 |
commit | 38c60180241e335e368fdadbf7856aff114ff668 (patch) | |
tree | 46b5945d5390ee1296dfe0991209a2e3eb57d070 /src/pathops/SkPathOpsTightBounds.cpp | |
parent | f12248ab10a8eba612b1cde8b1177de45bc712c7 (diff) |
Move from SkChunkAlloc to SkArenaAlloc for PathOps
Change-Id: Iab111a4ebcae4e896b1fdfe285def9ef0ae2ab6b
Reviewed-on: https://skia-review.googlesource.com/7314
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/pathops/SkPathOpsTightBounds.cpp')
-rw-r--r-- | src/pathops/SkPathOpsTightBounds.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathops/SkPathOpsTightBounds.cpp b/src/pathops/SkPathOpsTightBounds.cpp index f379c9e9a7..4236d2d545 100644 --- a/src/pathops/SkPathOpsTightBounds.cpp +++ b/src/pathops/SkPathOpsTightBounds.cpp @@ -47,7 +47,8 @@ bool TightBounds(const SkPath& path, SkRect* result) { *result = path.getBounds(); return true; } - SkChunkAlloc allocator(4096); // FIXME: constant-ize, tune + char storage[4096]; + SkArenaAlloc allocator(storage); // FIXME: constant-ize, tune SkOpContour contour; SkOpContourHead* contourList = static_cast<SkOpContourHead*>(&contour); SkOpGlobalState globalState(contourList, &allocator SkDEBUGPARAMS(false) |