Searched refs:ySpread (Results 1 – 2 of 2) sorted by relevance
/external/skia/bench/ |
D | ChartBench.cpp | 21 static void gen_data(SkScalar yAvg, SkScalar ySpread, int count, in gen_data() argument 25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data() 26 yAvg + SkScalarHalf(ySpread)); in gen_data() 114 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); in onDraw() local 122 SkScalar y = (kNumGraphs - i) * (height - ySpread) / (kNumGraphs + 1); in onDraw() 124 gen_data(y, ySpread, dataPointCount, &random, fData + i); in onDraw()
|
/external/skia/tools/viewer/ |
D | ChartSlide.cpp | 16 static void gen_data(SkScalar yAvg, SkScalar ySpread, int count, SkTDArray<SkScalar>* dataPts) { in gen_data() argument 20 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data() 21 yAvg + SkScalarHalf(ySpread)); in gen_data() 100 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); in draw() local 108 SkScalar y = (kNumGraphs - i) * (height - ySpread) / (kNumGraphs + 1); in draw() 110 gen_data(y, ySpread, dataPointCount, fData + i); in draw()
|