Lines Matching refs:bounds

122     static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) {
129 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) {
130 x = SkPin32(x, bounds.fLeft, bounds.fRight - 1);
131 y = SkPin32(y, bounds.fTop, bounds.fBottom - 1);
138 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) {
139 x = (x - bounds.left()) % bounds.width() + bounds.left();
140 y = (y - bounds.top()) % bounds.height() + bounds.top();
141 if (x < bounds.left()) {
142 x += bounds.width();
144 if (y < bounds.top()) {
145 y += bounds.height();
153 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) {
154 if (x < bounds.fLeft || x >= bounds.fRight || y < bounds.fTop || y >= bounds.fBottom) {
166 const SkIRect& bounds) const {
168 if (!rect.intersect(bounds)) {
172 SkPMColor* dptr = result->getAddr32(rect.fLeft - bounds.fLeft, y - bounds.fTop);
180 bounds);
197 a = SkGetPackedA32(PixelFetcher::fetch(src, x, y, bounds));
210 const SkIRect& bounds) const {
212 filterPixels<PixelFetcher, true>(src, result, rect, bounds);
214 filterPixels<PixelFetcher, false>(src, result, rect, bounds);
221 const SkIRect& bounds) const {
222 filterPixels<UncheckedPixelFetcher>(src, result, rect, bounds);
228 const SkIRect& bounds) const {
231 filterPixels<ClampPixelFetcher>(src, result, rect, bounds);
234 filterPixels<RepeatPixelFetcher>(src, result, rect, bounds);
237 filterPixels<ClampToBlackPixelFetcher>(src, result, rect, bounds);
280 SkIRect bounds;
281 if (!this->applyCropRect(ctx, proxy, src, &srcOffset, &bounds, &src)) {
294 if (!result->tryAllocPixels(src.info().makeWH(bounds.width(), bounds.height()))) {
298 offset->fX = bounds.fLeft;
299 offset->fY = bounds.fTop;
300 bounds.offset(-srcOffset);
301 SkIRect interior = SkIRect::MakeXYWH(bounds.left() + fKernelOffset.fX,
302 bounds.top() + fKernelOffset.fY,
303 bounds.width() - fKernelSize.fWidth + 1,
304 bounds.height() - fKernelSize.fHeight + 1);
305 SkIRect top = SkIRect::MakeLTRB(bounds.left(), bounds.top(), bounds.right(), interior.top());
306 SkIRect bottom = SkIRect::MakeLTRB(bounds.left(), interior.bottom(),
307 bounds.right(), bounds.bottom());
308 SkIRect left = SkIRect::MakeLTRB(bounds.left(), interior.top(),
311 bounds.right(), interior.bottom());
312 filterBorderPixels(src, result, top, bounds);
313 filterBorderPixels(src, result, left, bounds);
314 filterInteriorPixels(src, result, interior, bounds);
315 filterBorderPixels(src, result, right, bounds);
316 filterBorderPixels(src, result, bottom, bounds);
322 SkIRect bounds = src;
323 bounds.fRight += fKernelSize.width() - 1;
324 bounds.fBottom += fKernelSize.height() - 1;
325 bounds.offset(-fKernelOffset);
326 if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) {
329 *dst = bounds;
353 const SkIRect& bounds) const {
359 bounds,