Lines Matching refs:src
12 #include "src/core/SkCanvasPriv.h"
13 #include "src/core/SkGpuBlurUtils.h"
14 #include "src/gpu/GrRecordingContextPriv.h"
15 #include "src/gpu/GrStyle.h"
16 #include "src/gpu/SkGr.h"
17 #include "src/gpu/effects/GrBlendFragmentProcessor.h"
18 #include "src/gpu/effects/GrTextureEffect.h"
19 #include "src/gpu/v1/SurfaceDrawContext_v1.h"
20 #include "src/image/SkImage_Base.h"
25 GrSurfaceProxyView src,
32 src,
47 // Performs tiling first of the src into dst bounds with a surrounding skirt so the blur can use
50 GrSurfaceProxyView src,
56 auto tileInto = [rContext](GrSurfaceProxyView src,
67 auto fp = GrTextureEffect::MakeSubset(src,
79 src = tileInto(std::move(src), srcB, size, outset - dstB.topLeft(), mode);
80 if (!src) {
102 auto bounds = SkIRect::MakeSize(src.dimensions());
104 std::move(src),
116 src = sdc->readSurfaceView();
120 auto srcRect = SkIRect::MakeSize(src.dimensions());
121 return tileInto(std::move(src), srcRect, dstB.size(), -outset, SkTileMode::kClamp);
124 // Makes a src texture for as a source for blurs. If 'contentArea' then the content will
177 auto [src, ct] = as_IB(img)->asView(rContext, GrMipmapped::kNo);
178 return src;
187 GrSurfaceProxyView src = make_src_image(rContext, {60, 60});
188 if (!src) {
199 SkIRect srcRect = SkIRect::MakeSize(src.dimensions());
222 // adjacent to each side of src bounds.
230 // fully outside src bounds in one direction.
242 // outside of src bounds in both directions.
269 // Draw the src subset in the tile mode faded as a reference before drawing the blur
273 auto fp = GrTextureEffect::MakeSubset(src, kPremul_SkAlphaType, SkMatrix::I(),
283 const SkScalar sigmaX = src.width() / 10.f;
284 const SkScalar sigmaY = src.height() / 10.f;
288 src,
377 GrSurfaceProxyView src,
403 GrSurfaceProxyView result = b(rContext, src, dstB, srcB, sigX, sigY, tm);
437 auto src = make_src_image(rContext, {15, 15});
438 auto srcB = SkIRect::MakeSize(src.dimensions());
439 return do_very_large_blur_gm(rContext, canvas, errorMsg, std::move(src), srcB);
449 auto src = make_src_image(rContext, imageSize, &srcB);
450 return do_very_large_blur_gm(rContext, canvas, errorMsg, std::move(src), srcB);
460 auto src = make_src_image(rContext, imageSize, &srcB);
461 return do_very_large_blur_gm(rContext, canvas, errorMsg, std::move(src), srcB.makeOutset(1, 1));