Home | History | Annotate | Download | only in effects

Lines Matching full:srcrect

47                                  const SkRect& srcRect,
61 context->drawRectToRect(paint, dstRect, srcRect);
65 const SkRect& srcRect,
84 context->drawRectToRect(paint, dstRect, srcRect);
88 const SkRect& srcRect,
97 convolve_gaussian_1d(context, srcRect, dstRect, texture,
101 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect;
102 SkRect middleSrcRect = srcRect, middleDstRect = dstRect;
103 SkRect upperSrcRect = srcRect, upperDstRect = dstRect;
107 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width();
108 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width();
109 size = srcRect.width();
110 lowerSrcRect.fRight = srcRect.left() + rad;
112 upperSrcRect.fLeft = srcRect.right() - rad;
117 bounds[0] = SkScalarToFloat(srcRect.top()) / texture->height();
118 bounds[1] = SkScalarToFloat(srcRect.bottom()) / texture->height();
119 size = srcRect.height();
120 lowerSrcRect.fBottom = srcRect.top() + rad;
122 upperSrcRect.fTop = srcRect.bottom() - rad;
128 // Blur radius covers srcRect; use bounds over entire draw
129 convolve_gaussian_1d(context, srcRect, dstRect, texture,
163 SkRect srcRect(rect);
164 scale_rect(&srcRect, 1.0f / scaleFactorX, 1.0f / scaleFactorY);
165 srcRect.roundOut();
166 scale_rect(&srcRect, static_cast<float>(scaleFactorX),
169 GrContext::AutoClip acs(context, SkRect::MakeWH(srcRect.width(), srcRect.height()));
177 desc.fWidth = SkScalarFloorToInt(srcRect.width());
178 desc.fHeight = SkScalarFloorToInt(srcRect.height());
193 SkRect dstRect(srcRect);
213 context->drawRectToRect(paint, dstRect, srcRect);
214 srcRect = dstRect;
220 srcRect.roundOut(&srcIRect);
229 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height());
230 convolve_gaussian_2d(context, srcRect, dstRect, srcTexture,
233 srcRect = dstRect;
239 // Clear out a radius to the right of the srcRect to prevent the
246 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height());
247 convolve_gaussian(context, srcRect, dstRect, srcTexture,
250 srcRect = dstRect;
256 // Clear out a radius below the srcRect to prevent the Y
264 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height());
265 convolve_gaussian(context, srcRect, dstRect, srcTexture,
268 srcRect = dstRect;
291 SkRect dstRect(srcRect);
293 context->drawRectToRect(paint, dstRect, srcRect);
294 srcRect = dstRect;