Home | History | Annotate | Download | only in debugger

Lines Matching full:bounds

96 void xlate_and_scale_to_bounds(SkCanvas* canvas, const SkRect& bounds) {
102 if (bounds.width() > bounds.height()) {
103 canvas->scale(SkDoubleToScalar((kInsetFrac*size.fWidth)/bounds.width()),
104 SkDoubleToScalar((kInsetFrac*size.fHeight)/bounds.width()));
106 canvas->scale(SkDoubleToScalar((kInsetFrac*size.fWidth)/bounds.height()),
107 SkDoubleToScalar((kInsetFrac*size.fHeight)/bounds.height()));
109 canvas->translate(-bounds.centerX(), -bounds.centerY());
117 const SkRect& bounds = path.getBounds();
119 xlate_and_scale_to_bounds(canvas, bounds);
165 const SkRect& bounds = rrect.getBounds();
167 xlate_and_scale_to_bounds(canvas, bounds);
181 const SkRect& bounds = outer.getBounds();
183 xlate_and_scale_to_bounds(canvas, bounds);
521 SkRect bounds = SkRect::MakeWH(SkIntToScalar(fPicture->width()),
523 xlate_and_scale_to_bounds(canvas, bounds);
556 SkRect bounds;
558 bounds.setEmpty();
560 bounds.growToInclude(fPts[i].fX, fPts[i].fY);
563 xlate_and_scale_to_bounds(canvas, bounds);
857 SkSaveLayerCommand::SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint,
860 if (NULL != bounds) {
861 fBounds = *bounds;
874 if (NULL != bounds) {
875 fInfo.push(SkObjectParser::RectToString(*bounds, "Bounds: "));