Lines Matching refs:fTimers
26 for (int i = 0; i < fTimers.count(); ++i) { in resetMeasurements()
27 memset(fTimers[i].fTimes, 0, sizeof(fTimers[i].fTimes)); in resetMeasurements()
37 Timer newTimer = fTimers.count(); in addTimer()
38 TimerData& newData = fTimers.push_back(); in addTimer()
48 fTimers[timer].fTimes[fCurrentMeasurement] -= SkTime::GetMSecs(); in beginTiming()
54 fTimers[timer].fTimes[fCurrentMeasurement] += SkTime::GetMSecs(); in endTiming()
71 for (int i = 0; i < fTimers.count(); ++i) { in onPaint()
72 fTimers[i].fTimes[nextMeasurement] = 0; in onPaint()
122 sumTimes.setCount(fTimers.count()); in onPaint()
130 for (int timer = 0; timer < fTimers.count(); ++timer) { in onPaint()
131 int height = (int)(fTimers[timer].fTimes[i] * kPixelPerMS + 0.5); in onPaint()
133 paint.setColor(fTimers[timer].fColor); in onPaint()
137 inc += fTimers[timer].fTimes[i]; in onPaint()
138 sumTimes[timer] += fTimers[timer].fTimes[i]; in onPaint()
168 for (int timer = 0; timer < fTimers.count(); ++timer) { in onPaint()
169 paint.setColor(fTimers[timer].fLabelColor); in onPaint()
170 canvas->drawString(SkStringPrintf("%s: %4.3f ms", fTimers[timer].fLabel.c_str(), in onPaint()