/third_party/skia/src/core/ |
H A D | SkGpuBlurUtils.cpp | 102 const SkIRect& srcBounds, in convolve_gaussian_2d() 134 auto conv = GrMatrixConvolutionEffect::Make(rContext, std::move(srcView), srcBounds, in convolve_gaussian_2d() 155 SkIRect srcBounds, in convolve_gaussian() 165 // Logically we're creating an infinite blur of 'srcBounds' of 'srcView' with 'mode' tiling in convolve_gaussian() 186 srcBounds.contains(srcBackingBounds) && in convolve_gaussian() 191 convolve_gaussian_1d(dstSDC.get(), std::move(srcView), srcBounds, in convolve_gaussian() 196 // 'left' and 'right' are the sub rects of 'srcBounds' where 'mode' must be enforced. in convolve_gaussian() 198 // edge of 'srcBounds'. in convolve_gaussian() 200 // 'top' and 'bottom' are areas of 'dstBounds' that are entirely above/below 'srcBounds'. in convolve_gaussian() 201 // These are areas that we can simply clear in the dst in kDecal mode. If 'srcBounds' in convolve_gaussian() 98 convolve_gaussian_2d( GrRecordingContext* rContext, GrSurfaceProxyView srcView, GrColorType srcColorType, const SkIRect& srcBounds, const SkIRect& dstBounds, int radiusX, int radiusY, SkScalar sigmaX, SkScalar sigmaY, SkTileMode mode, sk_sp<SkColorSpace> finalCS, SkBackingFit dstFit) convolve_gaussian_2d() argument 150 convolve_gaussian( GrRecordingContext* rContext, GrSurfaceProxyView srcView, GrColorType srcColorType, SkAlphaType srcAlphaType, SkIRect srcBounds, SkIRect dstBounds, Direction direction, int radius, float sigma, SkTileMode mode, sk_sp<SkColorSpace> finalCS, SkBackingFit fit) convolve_gaussian() argument 303 reexpand( GrRecordingContext* rContext, std::unique_ptr<skgpu::SurfaceContext> src, const SkRect& srcBounds, SkISize dstSize, sk_sp<SkColorSpace> colorSpace, SkBackingFit fit) reexpand() argument 342 two_pass_gaussian( GrRecordingContext* rContext, GrSurfaceProxyView srcView, GrColorType srcColorType, SkAlphaType srcAlphaType, sk_sp<SkColorSpace> colorSpace, SkIRect srcBounds, SkIRect dstBounds, float sigmaX, float sigmaY, int radiusX, int radiusY, SkTileMode mode, SkBackingFit fit) two_pass_gaussian() argument 454 GaussianBlur(GrRecordingContext* rContext, GrSurfaceProxyView srcView, GrColorType srcColorType, SkAlphaType srcAlphaType, sk_sp<SkColorSpace> colorSpace, SkIRect dstBounds, SkIRect srcBounds, float sigmaX, float sigmaY, SkTileMode mode, SkBackingFit fit) GaussianBlur() argument [all...] |
H A D | SkImageFilter.cpp | 378 bool SkImageFilter_Base::applyCropRect(const Context& ctx, const SkIRect& srcBounds, in applyCropRect() argument 380 SkIRect tmpDst = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirection, nullptr); in applyCropRect() 428 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset->x(), srcOffset->y(), in applyCropRectAndPad() local 431 if (!this->applyCropRect(ctx, srcBounds, bounds)) { in applyCropRectAndPad() 435 if (srcBounds.contains(*bounds)) { in applyCropRectAndPad() 654 // In repeat mode, when we are going to sample off one edge of the srcBounds we require the 656 SkIRect SkImageFilter_Base::DetermineRepeatedSrcBound(const SkIRect& srcBounds, in DetermineRepeatedSrcBound() argument 660 SkIRect tmp = srcBounds; in DetermineRepeatedSrcBound()
|
H A D | SkSDFFilter.cpp | 123 GrSurfaceProxyView srcView, GrColorType srcColorType, const SkIRect& srcBounds, const SkIRect& dstBounds, in sdf_2d() 152 sk_sp<SkColorSpace> colorSpace, SkIRect dstBounds, SkIRect srcBounds, float noxFormedSigma, in SDFBlur() 167 return sdf_2d(rContext, std::move(srcView), srcColorType, srcBounds, dstBounds, noxFormedSigma, mode, in SDFBlur() 122 sdf_2d(GrRecordingContext* rContext, GrSurfaceProxyView srcView, GrColorType srcColorType, const SkIRect& srcBounds, const SkIRect& dstBounds, float noxFormedSigma, SkTileMode mode, sk_sp<SkColorSpace> finalCS, SkBackingFit dstFit, const SkMatrix& viewMatrix, const SkRRect& srcRRect) sdf_2d() argument 150 SDFBlur(GrRecordingContext* rContext, GrSurfaceProxyView srcView, GrColorType srcColorType, SkAlphaType srcAlphaType, sk_sp<SkColorSpace> colorSpace, SkIRect dstBounds, SkIRect srcBounds, float noxFormedSigma, SkTileMode mode, const SkMatrix& viewMatrix, const SkRRect& srcRRect, SkBackingFit fit) SDFBlur() argument
|
H A D | SkMatrixImageFilter.cpp | 81 const SkIRect srcBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage() local 83 const SkRect srcRect = SkRect::Make(srcBounds); in onFilterImage()
|
H A D | SkImageFilter_Base.h | 267 /** Given a "srcBounds" rect, computes destination bounds for this filter. 270 * the context's clip bounds. "srcBounds" (if non-null) are computed by 279 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const; 326 // If 'srcBounds' will sample outside the border of 'originalSrcBounds' (i.e., the sample 332 static SkIRect DetermineRepeatedSrcBound(const SkIRect& srcBounds,
|
H A D | SkSDFFilter.h | 51 sk_sp<SkColorSpace> colorSpace, SkIRect dstBounds, SkIRect srcBounds, float noxFormedSigma,
|
H A D | SkGpuBlurUtils.h | 43 * @param srcBounds The source bounds, relative to the source texture's offset. No pixels 58 SkIRect srcBounds,
|
/third_party/skia/src/effects/imagefilters/ |
H A D | SkMatrixConvolutionImageFilter.cpp | 315 const SkIRect& srcBounds) const { in filterBorderPixels() 318 filterPixels<ClampPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels() 323 filterPixels<RepeatPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels() 326 filterPixels<ClampToBlackPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels() 348 SkIRect srcBounds = this->onFilterNodeBounds(dstBounds, ctx.ctm(), kReverse_MapDirection, in onFilterImage() local 352 srcBounds = DetermineRepeatedSrcBound(srcBounds, fKernelOffset, in onFilterImage() 355 if (!srcBounds.intersect(dstBounds)) { in onFilterImage() 379 srcBounds.offset(-inputOffset); in onFilterImage() 380 // Map srcBounds fro in onFilterImage() [all...] |
H A D | SkBlurImageFilter.cpp | 692 SkIRect srcBounds, SkIRect dstBounds) { in copy_image_with_bounds() 703 inputBM.extractSubset(&src, srcBounds); in copy_image_with_bounds() 706 srcBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds() 709 auto srcW = srcBounds.width(), in copy_image_with_bounds() 724 for (;y < srcBounds.top(); y++) { in copy_image_with_bounds() 728 for (;y < srcBounds.bottom(); y++) { in copy_image_with_bounds() 731 for (;x < srcBounds.left(); x++) { in copy_image_with_bounds() 735 memcpy(dstPtr, src.getAddr32(x - srcBounds.left(), y - srcBounds.top()), in copy_image_with_bounds() 759 SkIRect srcBounds, SkIRec in cpu_blur() 690 copy_image_with_bounds( const SkImageFilter_Base::Context& ctx, const sk_sp<SkSpecialImage> &input, SkIRect srcBounds, SkIRect dstBounds) copy_image_with_bounds() argument 756 cpu_blur( const SkImageFilter_Base::Context& ctx, SkVector sigma, const sk_sp<SkSpecialImage> &input, SkIRect srcBounds, SkIRect dstBounds) cpu_blur() argument [all...] |
H A D | SkLightingImageFilter.cpp | 295 SkIRect srcBounds = src.bounds(); in lightBitmap() local 300 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap() 301 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap() 302 m[7] = PixelFetcher::Fetch(src, x, y + 1, srcBounds); in lightBitmap() 303 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap() 310 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap() 311 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap() 325 m[1] = PixelFetcher::Fetch(src, x, y - 1, srcBounds); in lightBitmap() 326 m[2] = PixelFetcher::Fetch(src, x + 1, y - 1, srcBounds); in lightBitmap() 327 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap() 458 drawRect(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView srcView, const SkMatrix& matrix, const SkIRect& dstRect, BoundaryMode boundaryMode, const SkIRect* srcBounds, const SkIRect& bounds) const drawRect() argument 658 Make(GrSurfaceProxyView view, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar kd, BoundaryMode boundaryMode, const SkIRect* srcBounds, const GrCaps& caps) Make() argument 708 Make(GrSurfaceProxyView view, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar ks, SkScalar shininess, BoundaryMode boundaryMode, const SkIRect* srcBounds, const GrCaps& caps) Make() argument 1333 makeFragmentProcessor( GrSurfaceProxyView view, const SkMatrix& matrix, const SkIRect* srcBounds, BoundaryMode boundaryMode, const GrCaps& caps) const makeFragmentProcessor() argument 1475 makeFragmentProcessor( GrSurfaceProxyView view, const SkMatrix& matrix, const SkIRect* srcBounds, BoundaryMode boundaryMode, const GrCaps& caps) const makeFragmentProcessor() argument 1632 LightingEffect(ClassID classID, GrSurfaceProxyView view, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, BoundaryMode boundaryMode, const SkIRect* srcBounds, const GrCaps& caps) LightingEffect() argument 1676 DiffuseLightingEffect(GrSurfaceProxyView view, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar kd, BoundaryMode boundaryMode, const SkIRect* srcBounds, const GrCaps& caps) DiffuseLightingEffect() argument 1748 SkIRect srcBounds = SkIRect::MakeXYWH(boundsX, boundsY, boundsW, boundsH); TestCreate() local 1892 SpecularLightingEffect(GrSurfaceProxyView view, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar ks, SkScalar shininess, BoundaryMode boundaryMode, const SkIRect* srcBounds, const GrCaps& caps) SpecularLightingEffect() argument 1942 SkIRect srcBounds = SkIRect::MakeXYWH(boundsX, boundsY, boundsW, boundsH); TestCreate() local [all...] |
H A D | SkMorphologyImageFilter.cpp | 653 SkIRect srcBounds = bounds; in onFilterImage() local 654 srcBounds.offset(-inputOffset); in onFilterImage() 659 return input->makeSubset(srcBounds); in onFilterImage() 673 sk_sp<SkSpecialImage> result(apply_morphology(context, input.get(), srcBounds, fType, in onFilterImage() 716 call_proc_X(procX, inputBM, &tmp, width, srcBounds); in onFilterImage() 717 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height()); in onFilterImage() 722 call_proc_X(procX, inputBM, &dst, width, srcBounds); in onFilterImage() 725 inputBM.getAddr32(srcBounds.left(), srcBounds in onFilterImage() [all...] |
H A D | SkArithmeticImageFilter.cpp | 202 SkIRect srcBounds = SkIRect::MakeEmpty(); in onFilterImage() local 204 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage() 208 srcBounds.join(foregroundBounds); in onFilterImage() 209 if (srcBounds.isEmpty()) { in onFilterImage() 214 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
H A D | SkBlendImageFilter.cpp | 143 SkIRect srcBounds = SkIRect::MakeEmpty(); in onFilterImage() local 145 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage() 149 srcBounds.join(foregroundBounds); in onFilterImage() 150 if (srcBounds.isEmpty()) { in onFilterImage() 155 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
H A D | SkShaderImageFilter.cpp | 82 const SkIRect srcBounds = SkIRect::MakeWH(ctx.sourceImage()->width(), in onFilterImage() local 84 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
H A D | SkOffsetImageFilter.cpp | 99 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset.fX, srcOffset.fY, in onFilterImage() local 101 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
H A D | SkDisplacementMapImageFilter.cpp | 255 const SkIRect srcBounds = SkIRect::MakeXYWH(colorOffset.x(), colorOffset.y(), in onFilterImage() local 261 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
/third_party/skia/src/gpu/vk/ |
H A D | GrVkOpsRenderPass.cpp | 135 const SkIRect& srcBounds, in adjust_bounds_to_granularity() 142 int rightAdj = srcBounds.fRight % granularity.width; in adjust_bounds_to_granularity() 146 dstBounds->fRight = srcBounds.fRight + rightAdj; in adjust_bounds_to_granularity() 151 dstBounds->fLeft = srcBounds.fLeft - srcBounds.fLeft % granularity.width; in adjust_bounds_to_granularity() 154 dstBounds->fLeft = srcBounds.fLeft; in adjust_bounds_to_granularity() 155 dstBounds->fRight = srcBounds.fRight; in adjust_bounds_to_granularity() 161 int bottomAdj = srcBounds.fBottom % granularity.height; in adjust_bounds_to_granularity() 165 dstBounds->fBottom = srcBounds.fBottom + bottomAdj; in adjust_bounds_to_granularity() 170 dstBounds->fTop = srcBounds in adjust_bounds_to_granularity() 134 adjust_bounds_to_granularity(SkIRect* dstBounds, const SkIRect& srcBounds, const VkExtent2D& granularity, int maxWidth, int maxHeight) adjust_bounds_to_granularity() argument [all...] |
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_resample.cpp | 510 const dng_rect &srcBounds, 533 const dng_rect &srcBounds, in dng_resample_task() 540 , fSrcBounds (srcBounds) in dng_resample_task() 545 , fRowScale ((srcBounds.H () != 0) ? dstBounds.H () / (real64) srcBounds.H () : 0) in dng_resample_task() 546 , fColScale ((srcBounds.W () != 0) ? dstBounds.W () / (real64) srcBounds.W () : 0) in dng_resample_task() 832 const dng_rect &srcBounds, in ResampleImage() 839 srcBounds, in ResampleImage() 531 dng_resample_task(const dng_image &srcImage, dng_image &dstImage, const dng_rect &srcBounds, const dng_rect &dstBounds, const dng_resample_function &kernel) dng_resample_task() argument 829 ResampleImage(dng_host &host, const dng_image &srcImage, dng_image &dstImage, const dng_rect &srcBounds, const dng_rect &dstBounds, const dng_resample_function &kernel) ResampleImage() argument
|
H A D | dng_resample.h | 285 const dng_rect &srcBounds,
|
H A D | dng_render.cpp | 1269 dng_rect srcBounds = fNegative.DefaultCropArea (); in Render() local 1302 if (srcBounds.Size () != dstSize) in Render() 1312 srcBounds, in Render() 1318 srcBounds = tempImage->Bounds (); in Render() 1324 AutoPtr<dng_image> dstImage (fHost.Make_dng_image (srcBounds.Size (), in Render() 1332 srcBounds.TL ()); in Render()
|
/third_party/skia/src/gpu/ops/ |
H A D | GrOp.h | 287 void setTransformedBounds(const SkRect& srcBounds, const SkMatrix& m, in setTransformedBounds() argument 289 m.mapRect(&fBounds, srcBounds); in setTransformedBounds()
|
/third_party/skia/src/gpu/effects/ |
H A D | GrMatrixConvolutionEffect.h | 24 const SkIRect& srcBounds,
|
H A D | GrMatrixConvolutionEffect.cpp | 335 const SkIRect& srcBounds, in Make() 350 sampler, SkRect::Make(srcBounds), caps); in Make() 333 Make(GrRecordingContext* context, GrSurfaceProxyView srcView, const SkIRect& srcBounds, const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, GrSamplerState::WrapMode wm, bool convolveAlpha, const GrCaps& caps) Make() argument
|
/third_party/skia/src/gpu/v1/ |
H A D | Device_drawTexture.cpp | 274 SkRect srcBounds = SkRect::MakeIWH(image.fWidth, image.fHeight); in optimize_sample_area() local 276 SkRect src = origSrcRect ? *origSrcRect : srcBounds; in optimize_sample_area() 289 if (origSrcRect && !srcBounds.contains(src)) { in optimize_sample_area() 290 if (!src.intersect(srcBounds)) { in optimize_sample_area() 304 : (origSrcRect ? *origSrcRect : srcBounds)); in optimize_sample_area()
|
/third_party/skia/src/image/ |
H A D | SkSurface.cpp | 212 sk_sp<SkImage> SkSurface::makeImageSnapshot(const SkIRect& srcBounds) { in makeImageSnapshot() argument 214 SkIRect bounds = srcBounds; in makeImageSnapshot()
|