aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTestUtils.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-08-07 06:55:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-07 06:55:31 -0700
commit30e4d75c3aebf49b179c265a91adbb6012970d2b (patch)
treeb437f6fa12859989d672c6b005418d9f799874e8 /src/gpu/GrTestUtils.cpp
parent9bca52629c16ed6f0960336637e028df4d40142f (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: Review URL: https://codereview.chromium.org/1270403006
Diffstat (limited to 'src/gpu/GrTestUtils.cpp')
-rw-r--r--src/gpu/GrTestUtils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrTestUtils.cpp b/src/gpu/GrTestUtils.cpp
index de840cca91..13b4b19fb6 100644
--- a/src/gpu/GrTestUtils.cpp
+++ b/src/gpu/GrTestUtils.cpp
@@ -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];