Home
last modified time | relevance | path

Searched refs:rec0 (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/views/
DSkTouchGesture.cpp240 const Rec& rec0 = fTouches[0]; in touchMoved() local
243 float scale = this->computePinch(rec0, rec1); in touchMoved()
246 fLocalM.setTranslate(-center(rec0.fStartX, rec1.fStartX), in touchMoved()
247 -center(rec0.fStartY, rec1.fStartY)); in touchMoved()
249 fLocalM.postTranslate(center(rec0.fLastX, rec1.fLastX), in touchMoved()
250 center(rec0.fLastY, rec1.fLastY)); in touchMoved()
296 float SkTouchGesture::computePinch(const Rec& rec0, const Rec& rec1) { in computePinch() argument
297 double dx = rec0.fStartX - rec1.fStartX; in computePinch()
298 double dy = rec0.fStartY - rec1.fStartY; in computePinch()
301 dx = rec0.fLastX - rec1.fLastX; in computePinch()
[all …]
/external/chromium_org/third_party/skia/src/views/
DSkTouchGesture.cpp240 const Rec& rec0 = fTouches[0]; in touchMoved() local
243 float scale = this->computePinch(rec0, rec1); in touchMoved()
246 fLocalM.setTranslate(-center(rec0.fStartX, rec1.fStartX), in touchMoved()
247 -center(rec0.fStartY, rec1.fStartY)); in touchMoved()
249 fLocalM.postTranslate(center(rec0.fLastX, rec1.fLastX), in touchMoved()
250 center(rec0.fLastY, rec1.fLastY)); in touchMoved()
296 float SkTouchGesture::computePinch(const Rec& rec0, const Rec& rec1) { in computePinch() argument
297 double dx = rec0.fStartX - rec1.fStartX; in computePinch()
298 double dy = rec0.fStartY - rec1.fStartY; in computePinch()
301 dx = rec0.fLastX - rec1.fLastX; in computePinch()
[all …]
/external/skia/tests/
DScalarTest.cpp169 const Rec& rec0 = data[i]; in test_isfinite() local
176 bool finite = gProc2[m](rec0.fValue, rec1.fValue, proc1); in test_isfinite()
177 bool finite2 = rec0.fIsFinite && rec1.fIsFinite; in test_isfinite()