diff options
author | Florin Malita <fmalita@chromium.org> | 2017-05-24 14:53:44 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-24 19:20:45 +0000 |
commit | 14a6430b7bcf92bcabf4aef18805969d1335aab1 (patch) | |
tree | 33ff205ce5b2851ea52d4774f999abc4c44b3579 /src/pathops/SkPathOpsSimplify.cpp | |
parent | 176f19cce532f8f5e2290515531660e3f59bbfde (diff) |
SkSTArenaAlloc
Syntactic sugar, gets rid of some boilerplate.
Change-Id: Ibdb28b7a8f1d5e4a4e18c12d423b987d7194e340
Reviewed-on: https://skia-review.googlesource.com/17837
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'src/pathops/SkPathOpsSimplify.cpp')
-rw-r--r-- | src/pathops/SkPathOpsSimplify.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pathops/SkPathOpsSimplify.cpp b/src/pathops/SkPathOpsSimplify.cpp index e671ab81a9..d9d0879986 100644 --- a/src/pathops/SkPathOpsSimplify.cpp +++ b/src/pathops/SkPathOpsSimplify.cpp @@ -146,8 +146,7 @@ bool SimplifyDebug(const SkPath& path, SkPath* result return true; } // turn path into list of segments - char storage[4096]; - SkArenaAlloc allocator(storage); // FIXME: constant-ize, tune + SkSTArenaAlloc<4096> allocator; // FIXME: constant-ize, tune SkOpContour contour; SkOpContourHead* contourList = static_cast<SkOpContourHead*>(&contour); SkOpGlobalState globalState(contourList, &allocator |