Searched refs:safeRect (Results 1 – 2 of 2) sorted by relevance
/external/skia/gm/ |
D | variedtext.cpp | 89 SkRect safeRect = SkRect::MakeLTRB(-r.fLeft, -r.fTop, w - r.fRight, h - r.fBottom); in onOnceBeforeDraw() local 90 if (safeRect.isEmpty()) { in onOnceBeforeDraw() 93 safeRect = SkRect::MakeWH(w, h); in onOnceBeforeDraw() 95 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); in onOnceBeforeDraw() 96 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom); in onOnceBeforeDraw()
|
/external/skqp/gm/ |
D | variedtext.cpp | 89 SkRect safeRect = SkRect::MakeLTRB(-r.fLeft, -r.fTop, w - r.fRight, h - r.fBottom); in onOnceBeforeDraw() local 90 if (safeRect.isEmpty()) { in onOnceBeforeDraw() 93 safeRect = SkRect::MakeWH(w, h); in onOnceBeforeDraw() 95 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); in onOnceBeforeDraw() 96 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom); in onOnceBeforeDraw()
|