Home | History | Annotate | Download | only in core

Lines Matching refs:bounds

50 // Helpers for computing fast bounds for quickReject tests
64 by the device's XY offset and bitmap-bounds.
350 done accumulating bounds for that draw.
524 /* Now we update our initial region to have the bounds of the new device,
525 and then intersect all of the clips in our stack with these bounds,
526 to ensure that we can't draw outside of the device's bounds (and trash
535 accurately take advantage of the new device bounds.
545 // compute our total bounds for all devices
546 SkIRect bounds;
548 bounds.set(0, 0, device->width(), device->height());
550 // now jam our 1st clip to be bounds, and intersect the rest with that
551 rec->fRasterClip->setRect(bounds);
553 (void)rec->fRasterClip->op(bounds, SkRegion::kIntersect_Op);
581 SkIRect bounds;
582 bounds.set(0, 0, device->width(), device->height());
583 if (!bounds.intersect(srcRect)) {
588 tmp.setConfig(SkBitmap::kARGB_8888_Config, bounds.width(),
589 bounds.height());
590 if (this->readPixels(&tmp, bounds.fLeft, bounds.fTop)) {
675 const SkIRect& bounds,
686 if (device->intersects(bounds))
714 bool SkCanvas::clipRectBounds(const SkRect* bounds, SaveFlags flags,
721 if (NULL != bounds) {
724 this->getTotalMatrix().mapRect(&r, *bounds);
726 // early exit if the layer's bounds are clipped out
733 } else { // no user bounds, so just use the clip
751 int SkCanvas::saveLayer(const SkRect* bounds, const SkPaint* paint,
760 if (!this->clipRectBounds(bounds, flags, &ir)) {
802 int SkCanvas::saveLayerAlpha(const SkRect* bounds, U8CPU alpha,
805 return this->saveLayer(bounds, NULL, flags);
809 return this->saveLayer(bounds, &tmpPaint, flags);
1053 // bounds, than just using the device. However, if currRgn is complex,
1093 // values. computing the bounds detects this, and will set our
1094 // bounds to empty if that is the case. (see SkRect::set(pts, count))
1224 bool SkCanvas::getClipBounds(SkRect* bounds, EdgeType et) const {
1231 // if we can't invert the CTM, we can't return local clip bounds
1233 if (bounds) {
1234 bounds->setEmpty();
1239 if (NULL != bounds) {
1253 inverse.mapRect(bounds, r);
1258 bool SkCanvas::getClipDeviceBounds(SkIRect* bounds) const {
1261 if (bounds) {
1262 bounds->setEmpty();
1267 if (NULL != bounds) {
1268 *bounds = clip.getBounds();
1394 const SkRect& bounds = path.getBounds();
1395 if (this->quickReject(paint.computeFastBounds(bounds, &storage),
1421 SkRect bounds = {
1427 (void)paint->computeFastBounds(bounds, &bounds);
1429 if (this->quickReject(bounds, paint2EdgeType(paint))) {
1449 const SkRect* bounds = &dst;
1451 bounds = &paint->computeFastBounds(dst, &storage);
1453 if (this->quickReject(*bounds, paint2EdgeType(paint))) {
1523 const SkRect* bounds = &dst;
1525 bounds = &paint->computeFastBounds(dst, &storage);
1527 if (this->quickReject(*bounds, paint2EdgeType(paint))) {
1536 // pin center to the bounds of the bitmap