Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DGrSurface.cpp56 SkIRect subRect = SkIRect::MakeXYWH(*left, *top, *width, *height); in adjust_params() local
59 if (!subRect.intersect(bounds)) { in adjust_params()
63 (subRect.fTop - *top) * *rowBytes + (subRect.fLeft - *left) * bpp); in adjust_params()
65 *left = subRect.fLeft; in adjust_params()
66 *top = subRect.fTop; in adjust_params()
67 *width = subRect.width(); in adjust_params()
68 *height = subRect.height(); in adjust_params()
/external/skia/gm/
Dtallstretchedbitmaps.cpp36 SkIRect subRect = SkIRect::MakeXYWH(0, i * (kMargin + 2 * kRadius), in make_bm() local
38 bm->extractSubset(&smallBM, subRect); in make_bm()
86 SkIRect subRect = SkIRect::MakeLTRB(0, startItem * itemHeight, in onDraw() local
91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint); in onDraw()