Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DGrSurface.cpp103 SkIRect subRect = SkIRect::MakeXYWH(*left, *top, *width, *height); in adjust_params() local
106 if (!subRect.intersect(bounds)) { in adjust_params()
110 (subRect.fTop - *top) * *rowBytes + (subRect.fLeft - *left) * bpp); in adjust_params()
112 *left = subRect.fLeft; in adjust_params()
113 *top = subRect.fTop; in adjust_params()
114 *width = subRect.width(); in adjust_params()
115 *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()