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
This commit is contained in:
mtklein 2015-08-07 07:22:44 -07:00 committed by Commit bot
parent 30e4d75c3a
commit f1595185e3

View File

@ -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++) {