Lines Matching defs:bounds

39     const SkRect* bounds() const { return fHasBounds ? &fBounds : nullptr; }
40 operator const SkRect* () const { return this->bounds(); }
68 SkDrawTiler(SkBitmapDevice* dev, const SkRect* bounds) : fDevice(dev) {
77 // do a quick check, so we don't even have to process "bounds" if there is no need
81 if (bounds) {
89 // devBounds = mapRect(bounds);
94 fSrcBounds = dev->localToDevice().mapRect(*bounds).roundOut();
161 SkIRect bounds = SkIRect::MakeXYWH(fOrigin.x(), fOrigin.y(), kMaxDim, kMaxDim);
162 SkASSERT(!bounds.isEmpty());
163 bool success = fRootPixmap.extractSubset(&fDraw.fDst, bounds);
165 // now don't use bounds, since fDst has the clipped dimensions.
176 // Passing a bounds allows the tiler to only visit the dst-tiles that might intersect the
177 // drawing. If null is passed, the tiler has to visit everywhere. The bounds is expected to be
387 const SkRect* bounds = nullptr;
389 bounds = &path.getBounds();
391 SkDrawTiler tiler(this, bounds ? Bounder(*bounds, paint).bounds() : nullptr);
403 const SkRect* bounds = dstOrNull;
405 if (!bounds && SkDrawTiler::NeedsTiling(this)) {
409 storage = *b.bounds();
410 bounds = &storage;
413 LOOP_TILER(drawBitmap(bitmap, matrix, dstOrNull, sampling, paint), bounds)
454 // clip the tmpSrc to the bounds of the bitmap, and recompute dstRect if
473 // src is smaller than the bounds of the bitmap, and we are filtering, so we don't know
475 // but we must use a shader w/ dst bounds (which can access all of the bitmap needed).
609 return SkSpecialImage::MakeFromRaster(bitmap.bounds(), bitmap, this->surfaceProps());
617 sk_sp<SkSpecialImage> SkBitmapDevice::snapSpecial(const SkIRect& bounds, bool forceCopy) {
619 return SkSpecialImage::CopyFromRaster(bounds, fBitmap, this->surfaceProps());
621 return SkSpecialImage::MakeFromRaster(bounds, fBitmap, this->surfaceProps());