Home | History | Annotate | Download | only in effects

Lines Matching refs:srcRect

43                                    const SkRect& srcRect,
57 context->drawRectToRect(paint, dstRect, srcRect);
61 const SkRect& srcRect,
70 convolve_gaussian_pass(context, srcRect, dstRect, texture,
74 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect;
75 SkRect middleSrcRect = srcRect, middleDstRect = dstRect;
76 SkRect upperSrcRect = srcRect, upperDstRect = dstRect;
80 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width();
81 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width();
82 size = srcRect.width();
83 lowerSrcRect.fRight = srcRect.left() + rad;
85 upperSrcRect.fLeft = srcRect.right() - rad;
90 bounds[0] = SkScalarToFloat(srcRect.top()) / texture->height();
91 bounds[1] = SkScalarToFloat(srcRect.bottom()) / texture->height();
92 size = srcRect.height();
93 lowerSrcRect.fBottom = srcRect.top() + rad;
95 upperSrcRect.fTop = srcRect.bottom() - rad;
101 // Blur radius covers srcRect; use bounds over entire draw
102 convolve_gaussian_pass(context, srcRect, dstRect, texture,
135 SkRect srcRect(rect);
136 scale_rect(&srcRect, 1.0f / scaleFactorX, 1.0f / scaleFactorY);
137 srcRect.roundOut();
138 scale_rect(&srcRect, static_cast<float>(scaleFactorX),
141 GrContext::AutoClip acs(context, SkRect::MakeWH(srcRect.width(), srcRect.height()));
149 desc.fWidth = SkScalarFloorToInt(srcRect.width());
150 desc.fHeight = SkScalarFloorToInt(srcRect.height());
165 SkRect dstRect(srcRect);
185 context->drawRectToRect(paint, dstRect, srcRect);
186 srcRect = dstRect;
192 srcRect.roundOut(&srcIRect);
196 // Clear out a radius to the right of the srcRect to prevent the
203 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height());
204 convolve_gaussian(context, srcRect, dstRect, srcTexture,
207 srcRect = dstRect;
213 // Clear out a radius below the srcRect to prevent the Y
221 SkRect dstRect = SkRect::MakeWH(srcRect.width(), srcRect.height());
222 convolve_gaussian(context, srcRect, dstRect, srcTexture,
225 srcRect = dstRect;
247 SkRect dstRect(srcRect);
249 context->drawRectToRect(paint, dstRect, srcRect);
250 srcRect = dstRect;