diff options
author | mtklein <mtklein@chromium.org> | 2015-08-07 07:22:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-07 07:22:44 -0700 |
commit | f1595185e3855580b881c3d9c05344695d019030 (patch) | |
tree | ae5971bb496acd35edf793e10b3c246184cf22ed /src/gpu/GrTestUtils.cpp | |
parent | 30e4d75c3aebf49b179c265a91adbb6012970d2b (diff) |
This iOS crash makes little sense to me. Add some debugging.
We called new float[...]. The pointer returned should be aligned for float writes.
See https://uberchromegw.corp.google.com/i/client.skia/builders/Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/30e4d75c3aebf49b179c265a91adbb6012970d2b
Review URL: https://codereview.chromium.org/1270403006
Diffstat (limited to 'src/gpu/GrTestUtils.cpp')
-rw-r--r-- | src/gpu/GrTestUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrTestUtils.cpp b/src/gpu/GrTestUtils.cpp index 13b4b19fb6..da9fc106b3 100644 --- a/src/gpu/GrTestUtils.cpp +++ b/src/gpu/GrTestUtils.cpp @@ -244,7 +244,7 @@ GrStrokeInfo TestStrokeInfo(SkRandom* random) { randomize_stroke_rec(&strokeInfo, random); SkPathEffect::DashInfo dashInfo; dashInfo.fCount = random->nextRangeU(1, 50) * 2; - SkAutoTDeleteArray<SkScalar> intervals(SkNEW_ARRAY(SkScalar, dashInfo.fCount)); + SkAutoTMalloc<SkScalar> intervals(dashInfo.fCount); dashInfo.fIntervals = intervals.get(); SkScalar sum = 0; for (int i = 0; i < dashInfo.fCount; i++) { |