Lines Matching refs:rec
51 Rec* rec = fTouches.append(); in appendNewRec() local
52 rec->fOwner = owner; in appendNewRec()
53 rec->fStartX = rec->fPrevX = rec->fLastX = x; in appendNewRec()
54 rec->fStartY = rec->fPrevY = rec->fLastY = y; in appendNewRec()
55 rec->fLastT = rec->fPrevT = SkTime::GetMSecs(); in appendNewRec()
130 Rec& rec = fTouches[index]; in touchMoved() local
134 if (close_enough_for_jitter(rec.fLastX, rec.fLastY, x, y)) { in touchMoved()
140 rec.fPrevX = rec.fLastX; rec.fLastX = x; in touchMoved()
141 rec.fPrevY = rec.fLastY; rec.fLastY = y; in touchMoved()
142 rec.fPrevT = rec.fLastT; rec.fLastT = SkTime::GetMSecs(); in touchMoved()
146 float dx = rec.fLastX - rec.fStartX; in touchMoved()
147 float dy = rec.fLastY - rec.fStartY; in touchMoved()
180 const Rec& rec = fTouches[index]; in touchEnd() local
181 if (this->handleDblTap(rec.fLastX, rec.fLastY)) { in touchEnd()
189 float dx = rec.fLastX - rec.fPrevX; in touchEnd()
190 float dy = rec.fLastY - rec.fPrevY; in touchEnd()
191 float dur = (rec.fLastT - rec.fPrevT) * 0.001f; in touchEnd()