Home
last modified time | relevance | path

Searched refs:positionRect (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/gpu/ops/
DGrAtlasTextOp.cpp182 SkIRect positionRect = SkIRect::MakeLTRB(SkScalarRoundToInt(blobPositionLT->fX), in clip_quads() local
186 if (clipRect.contains(positionRect)) { in clip_quads()
206 int positionRectWidth = positionRect.width(); in clip_quads()
207 int positionRectHeight = positionRect.height(); in clip_quads()
213 delta = SkTMin(SkTMax(clipRect.fLeft - positionRect.fLeft, 0), positionRectWidth); in clip_quads()
215 positionRect.fLeft += delta; in clip_quads()
217 delta = SkTMin(SkTMax(clipRect.fTop - positionRect.fTop, 0), positionRectHeight); in clip_quads()
219 positionRect.fTop += delta; in clip_quads()
221 delta = SkTMin(SkTMax(positionRect.fRight - clipRect.fRight, 0), positionRectWidth); in clip_quads()
223 positionRect.fRight -= delta; in clip_quads()
[all …]
/external/skqp/src/gpu/ops/
DGrAtlasTextOp.cpp179 SkIRect positionRect = SkIRect::MakeLTRB(SkScalarRoundToInt(blobPositionLT->fX), in clip_quads() local
183 if (clipRect.contains(positionRect)) { in clip_quads()
203 int positionRectWidth = positionRect.width(); in clip_quads()
204 int positionRectHeight = positionRect.height(); in clip_quads()
210 delta = SkTMin(SkTMax(clipRect.fLeft - positionRect.fLeft, 0), positionRectWidth); in clip_quads()
212 positionRect.fLeft += delta; in clip_quads()
214 delta = SkTMin(SkTMax(clipRect.fTop - positionRect.fTop, 0), positionRectHeight); in clip_quads()
216 positionRect.fTop += delta; in clip_quads()
218 delta = SkTMin(SkTMax(positionRect.fRight - clipRect.fRight, 0), positionRectWidth); in clip_quads()
220 positionRect.fRight -= delta; in clip_quads()
[all …]