This iOS crash makes little sense to me. Add some debugging.
authormtklein <mtklein@chromium.org>
Fri, 7 Aug 2015 13:55:31 +0000 (06:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Aug 2015 13:55:31 +0000 (06:55 -0700)
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

src/gpu/GrTestUtils.cpp

index de840cca91e7d8e8ab2f1d8fc1479e0657ae47cd..13b4b19fb6ecf1dd5a083dc2f8a08b11121ab3cd 100644 (file)
@@ -248,6 +248,9 @@ GrStrokeInfo TestStrokeInfo(SkRandom* random) {
     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];