Lines Matching refs:timer
46 void StatsLayer::beginTiming(Timer timer) {
48 fTimers[timer].fTimes[fCurrentMeasurement] -= SkTime::GetMSecs();
52 void StatsLayer::endTiming(Timer timer) {
54 fTimers[timer].fTimes[fCurrentMeasurement] += SkTime::GetMSecs();
130 for (int timer = 0; timer < fTimers.count(); ++timer) {
131 int height = (int)(fTimers[timer].fTimes[i] * kPixelPerMS + 0.5);
133 paint.setColor(fTimers[timer].fColor);
137 inc += fTimers[timer].fTimes[i];
138 sumTimes[timer] += fTimers[timer].fTimes[i];
168 for (int timer = 0; timer < fTimers.count(); ++timer) {
169 paint.setColor(fTimers[timer].fLabelColor);
170 canvas->drawString(SkStringPrintf("%s: %4.3f ms", fTimers[timer].fLabel.c_str(),
171 sumTimes[timer] / std::max(1, count)),
172 rect.fLeft + 3, rect.fTop + 28 + (14 * timer), font, paint);