Home
last modified time | relevance | path

Searched refs:ySpread (Results 1 – 4 of 4) sorted by relevance

/external/skia/samplecode/
DSampleChart.cpp15 static void gen_data(SkScalar yAvg, SkScalar ySpread, int count, SkTDArray<SkScalar>* dataPts) { in gen_data() argument
19 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
20 yAvg + SkScalarHalf(ySpread)); in gen_data()
98 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); in onDrawContent() local
106 SkScalar y = (kNumGraphs - i) * (height - ySpread) / (kNumGraphs + 1); in onDrawContent()
108 gen_data(y, ySpread, dataPointCount, fData + i); in onDrawContent()
/external/skia/bench/
DChartBench.cpp21 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/skqp/bench/
DChartBench.cpp21 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/skqp/samplecode/
DSampleChart.cpp15 static void gen_data(SkScalar yAvg, SkScalar ySpread, int count, SkTDArray<SkScalar>* dataPts) { in gen_data() argument
19 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
20 yAvg + SkScalarHalf(ySpread)); in gen_data()
106 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); in onDrawContent() local
114 SkScalar y = (kNumGraphs - i) * (height - ySpread) / (kNumGraphs + 1); in onDrawContent()
116 gen_data(y, ySpread, dataPointCount, fData + i); in onDrawContent()