Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: src/gpu/GrTestUtils.cpp

Issue 1270403006: This iOS crash makes little sense to me. Add some debugging. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: print more Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/flags/SkCommonFlags.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTestUtils.cpp
diff --git a/src/gpu/GrTestUtils.cpp b/src/gpu/GrTestUtils.cpp
index da9fc106b3b586d6c5fa8b98b8fcad9ce7de943b..ad910510dae2f7c6b2459755934858665b213500 100644
--- a/src/gpu/GrTestUtils.cpp
+++ b/src/gpu/GrTestUtils.cpp
@@ -246,11 +246,11 @@ GrStrokeInfo TestStrokeInfo(SkRandom* random) {
dashInfo.fCount = random->nextRangeU(1, 50) * 2;
SkAutoTMalloc<SkScalar> intervals(dashInfo.fCount);
dashInfo.fIntervals = intervals.get();
+ SkDebugf("intervals %p, dashInfo.fIntervals %p, dashInfo.fCount %d\n",
+ intervals.get(), dashInfo.fIntervals, dashInfo.fCount);
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];
« no previous file with comments | « no previous file | tools/flags/SkCommonFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698