Lines Matching defs:rect
426 void GrContext::setClip(const GrIRect& rect) {
428 clip.setFromIRect(rect);
434 void GrContext::clear(const GrIRect* rect, const GrColor color) {
436 fGpu->clear(rect, color);
440 // set rect to be big enough to fill the space, but not super-huge, so we
607 GrRect rect = SkRect::MakeWH(scale * boundRect.width(),
609 target->drawSimpleRect(rect, NULL, 1 << kOffscreenStage);
614 GrIRect rect = SkIRect::MakeWH(boundRect.width(), boundRect.height());
615 src->asRenderTarget()->overrideResolveRect(rect);
664 static void setStrokeRectStrip(GrPoint verts[10], GrRect rect,
667 rect.sort();
669 verts[0].set(rect.fLeft + rad, rect.fTop + rad);
670 verts[1].set(rect.fLeft - rad, rect.fTop - rad);
671 verts[2].set(rect.fRight - rad, rect.fTop + rad);
672 verts[3].set(rect.fRight + rad, rect.fTop - rad);
673 verts[4].set(rect.fRight - rad, rect.fBottom - rad);
674 verts[5].set(rect.fRight + rad, rect.fBottom + rad);
675 verts[6].set(rect.fLeft + rad, rect.fBottom - rad);
676 verts[7].set(rect.fLeft - rad, rect.fBottom + rad);
869 const GrRect& rect,
875 // do AA with alpha ramp if the caller requested AA, the rect
877 // multisampled, and the rect won't land on integer coords.
906 combinedMatrix->mapRect(devRect, rect);
917 const GrRect& rect,
925 GrRect devRect = rect;
927 bool doAA = apply_aa_to_rect(target, fGpu, paint, rect, width, matrix,
975 setStrokeRectStrip(vertex, rect, width);
980 vertex[0].set(rect.fLeft, rect.fTop);
981 vertex[1].set(rect.fRight, rect.fTop);
982 vertex[2].set(rect.fRight, rect.fBottom);
983 vertex[3].set(rect.fLeft, rect.fBottom);
984 vertex[4].set(rect.fLeft, rect.fTop);
1003 m.setAll(rect.width(), 0, rect.fLeft,
1004 0, rect.height(), rect.fTop,
1016 target->drawSimpleRect(rect, matrix, stageMask);