Home
last modified time | relevance | path

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

/third_party/skia/tools/viewer/
DTouchGesture.cpp246 const Rec& rec0 = fTouches[0]; in touchMoved() local
249 float scale = this->computePinch(rec0, rec1); in touchMoved()
251 center(rec0.fStartX, rec1.fStartX), in touchMoved()
252 center(rec0.fStartY, rec1.fStartY), in touchMoved()
253 center(rec0.fLastX, rec1.fLastX), in touchMoved()
254 center(rec0.fLastY, rec1.fLastY)); in touchMoved()
311 float TouchGesture::computePinch(const Rec& rec0, const Rec& rec1) { in computePinch() argument
312 double dx = rec0.fStartX - rec1.fStartX; in computePinch()
313 double dy = rec0.fStartY - rec1.fStartY; in computePinch()
316 dx = rec0.fLastX - rec1.fLastX; in computePinch()
[all …]
/third_party/skia/tests/
DScalarTest.cpp179 const Rec& rec0 = data[i]; in test_isfinite() local
186 bool finite = gProc2[m](rec0.fValue, rec1.fValue, proc1); in test_isfinite()
187 bool finite2 = rec0.fIsFinite && rec1.fIsFinite; in test_isfinite()
DSkResourceCacheTest.cpp249 auto rec0 = std::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() local
251 SkASSERT(rec0->getKey() == rec1->getKey()); in test_duplicate_add()
253 TestRec* r0 = rec0.get(); // save the bare-pointer since we will release rec0 in test_duplicate_add()
259 cache->add(rec0.release(), nullptr); in test_duplicate_add()
DRecordOptsTest.cpp386 SkPictureRecorder rec0, rec1; in do_savelayer_srcmode() local
388 c0 = rec0.beginRecording(10, 10); in do_savelayer_srcmode()
396 surf0->getCanvas()->drawPicture(rec0.finishRecordingAsPicture()); in do_savelayer_srcmode()