commit | 30e4d75c3aebf49b179c265a91adbb6012970d2b | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Fri Aug 07 06:55:31 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Aug 07 06:55:31 2015 -0700 |
tree | b437f6fa12859989d672c6b005418d9f799874e8 | |
parent | 9bca52629c16ed6f0960336637e028df4d40142f [diff] [blame] |
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: Review URL: https://codereview.chromium.org/1270403006
diff --git a/src/gpu/GrTestUtils.cpp b/src/gpu/GrTestUtils.cpp index de840cc..13b4b19 100644 --- a/src/gpu/GrTestUtils.cpp +++ b/src/gpu/GrTestUtils.cpp
@@ -248,6 +248,9 @@ dashInfo.fIntervals = intervals.get(); SkScalar sum = 0; for (int i = 0; i < dashInfo.fCount; i++) { + #if defined(SK_BUILD_FOR_IOS) + SkDebugf("&dashInfo.fIntervals[%d] = %p\n", i, &dashInfo.fIntervals[i]); + #endif dashInfo.fIntervals[i] = random->nextRangeScalar(SkDoubleToScalar(0.01), SkDoubleToScalar(10.0)); sum += dashInfo.fIntervals[i];