Lines Matching refs:fTimers
22 for (int i = 0; i < fTimers.count(); ++i) { in resetMeasurements()
23 memset(fTimers[i].fTimes, 0, sizeof(fTimers[i].fTimes)); in resetMeasurements()
31 Timer newTimer = fTimers.count(); in addTimer()
32 TimerData& newData = fTimers.push_back(); in addTimer()
41 fTimers[timer].fTimes[fCurrentMeasurement] -= SkTime::GetMSecs(); in beginTiming()
45 fTimers[timer].fTimes[fCurrentMeasurement] += SkTime::GetMSecs(); in endTiming()
50 return fTimers[timer].fTimes[idx]; in getLastTime()
55 for (int i = 0; i < fTimers.count(); ++i) { in onPaint()
56 fCumulativeMeasurementTime += fTimers[i].fTimes[fCurrentMeasurement]; in onPaint()
61 for (int i = 0; i < fTimers.count(); ++i) { in onPaint()
62 fTimers[i].fTimes[fCurrentMeasurement] = 0; in onPaint()
113 sumTimes.setCount(fTimers.count()); in onPaint()
119 for (int timer = 0; timer < fTimers.count(); ++timer) { in onPaint()
120 int height = (int)(fTimers[timer].fTimes[i] * kPixelPerMS + 0.5); in onPaint()
122 paint.setColor(fTimers[timer].fColor); in onPaint()
126 inc += fTimers[timer].fTimes[i]; in onPaint()
127 sumTimes[timer] += fTimers[timer].fTimes[i]; in onPaint()
147 for (int timer = 0; timer < fTimers.count(); ++timer) { in onPaint()
148 paint.setColor(fTimers[timer].fLabelColor); in onPaint()
149 canvas->drawString(SkStringPrintf("%s: %4.3f ms", fTimers[timer].fLabel.c_str(), in onPaint()