/third_party/skia/src/core/ |
D | SkGpuBlurUtils.cpp | 102 const SkIRect& srcBounds, in convolve_gaussian_2d() argument 134 auto conv = GrMatrixConvolutionEffect::Make(rContext, std::move(srcView), srcBounds, in convolve_gaussian_2d() 155 SkIRect srcBounds, in convolve_gaussian() argument 186 srcBounds.contains(srcBackingBounds) && in convolve_gaussian() 191 convolve_gaussian_1d(dstSDC.get(), std::move(srcView), srcBounds, in convolve_gaussian() 208 top = {dstBounds.left(), dstBounds.top() , dstBounds.right(), srcBounds.top() }; in convolve_gaussian() 209 bottom = {dstBounds.left(), srcBounds.bottom(), dstBounds.right(), dstBounds.bottom()}; in convolve_gaussian() 213 int midA = std::max(srcBounds.top() , dstBounds.top() ); in convolve_gaussian() 214 int midB = std::min(srcBounds.bottom(), dstBounds.bottom()); in convolve_gaussian() 215 mid = {srcBounds.left() + radius, midA, srcBounds.right() - radius, midB}; in convolve_gaussian() [all …]
|
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() 656 SkIRect SkImageFilter_Base::DetermineRepeatedSrcBound(const SkIRect& srcBounds, in DetermineRepeatedSrcBound() argument 660 SkIRect tmp = srcBounds; in DetermineRepeatedSrcBound()
|
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()
|
D | SkImageFilter_Base.h | 279 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const; 332 static SkIRect DetermineRepeatedSrcBound(const SkIRect& srcBounds,
|
D | SkGpuBlurUtils.h | 58 SkIRect srcBounds,
|
D | SkDraw.cpp | 1123 const SkRect srcBounds = SkRect::MakeIWH(bitmap.width(), bitmap.height()); in drawBitmap() local 1125 this->drawRect(srcBounds, paintWithShader, &prematrix, dstBounds); in drawBitmap() 1127 draw.drawRect(srcBounds, paintWithShader); in drawBitmap()
|
/third_party/skia/src/effects/imagefilters/ |
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() 381 srcBounds.offset(input->subset().x(), input->subset().y()); in onFilterImage() 385 srcBounds, in onFilterImage() [all …]
|
D | SkBlurImageFilter.cpp | 692 SkIRect srcBounds, SkIRect dstBounds) { in copy_image_with_bounds() argument 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, SkIRect dstBounds) { in cpu_blur() argument 778 return copy_image_with_bounds(ctx, input, srcBounds, dstBounds); in cpu_blur() [all …]
|
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() [all …]
|
D | SkMorphologyImageFilter.cpp | 644 SkIRect srcBounds = bounds; in onFilterImage() local 645 srcBounds.offset(-inputOffset); in onFilterImage() 650 return input->makeSubset(srcBounds); in onFilterImage() 664 sk_sp<SkSpecialImage> result(apply_morphology(context, input.get(), srcBounds, fType, in onFilterImage() 707 call_proc_X(procX, inputBM, &tmp, width, srcBounds); in onFilterImage() 708 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height()); in onFilterImage() 713 call_proc_X(procX, inputBM, &dst, width, srcBounds); in onFilterImage() 716 inputBM.getAddr32(srcBounds.left(), srcBounds.top()), in onFilterImage() 718 &dst, height, srcBounds); in onFilterImage()
|
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()
|
D | SkShaderImageFilter.cpp | 82 const SkIRect srcBounds = SkIRect::MakeWH(ctx.sourceImage()->width(), in onFilterImage() local 84 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
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()
|
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()
|
D | SkDisplacementMapImageFilter.cpp | 253 const SkIRect srcBounds = SkIRect::MakeXYWH(colorOffset.x(), colorOffset.y(), in onFilterImage() local 259 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
/third_party/skia/src/gpu/vk/ |
D | GrVkOpsRenderPass.cpp | 133 const SkIRect& srcBounds, in adjust_bounds_to_granularity() argument 140 int rightAdj = srcBounds.fRight % granularity.width; in adjust_bounds_to_granularity() 144 dstBounds->fRight = srcBounds.fRight + rightAdj; in adjust_bounds_to_granularity() 149 dstBounds->fLeft = srcBounds.fLeft - srcBounds.fLeft % granularity.width; in adjust_bounds_to_granularity() 152 dstBounds->fLeft = srcBounds.fLeft; in adjust_bounds_to_granularity() 153 dstBounds->fRight = srcBounds.fRight; in adjust_bounds_to_granularity() 159 int bottomAdj = srcBounds.fBottom % granularity.height; in adjust_bounds_to_granularity() 163 dstBounds->fBottom = srcBounds.fBottom + bottomAdj; in adjust_bounds_to_granularity() 168 dstBounds->fTop = srcBounds.fTop - srcBounds.fTop % granularity.height; in adjust_bounds_to_granularity() 171 dstBounds->fTop = srcBounds.fTop; in adjust_bounds_to_granularity() [all …]
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_resample.cpp | 510 const dng_rect &srcBounds, 533 const dng_rect &srcBounds, in dng_resample_task() argument 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() argument 839 srcBounds, in ResampleImage()
|
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()
|
D | dng_resample.h | 285 const dng_rect &srcBounds,
|
/third_party/skia/src/gpu/ops/ |
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/v1/ |
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/gpu/effects/ |
D | GrMatrixConvolutionEffect.h | 24 const SkIRect& srcBounds,
|
D | GrMatrixConvolutionEffect.cpp | 327 const SkIRect& srcBounds, in Make() argument 342 sampler, SkRect::Make(srcBounds), caps); in Make()
|
/third_party/skia/src/image/ |
D | SkSurface.cpp | 212 sk_sp<SkImage> SkSurface::makeImageSnapshot(const SkIRect& srcBounds) { in makeImageSnapshot() argument 214 SkIRect bounds = srcBounds; in makeImageSnapshot()
|
/third_party/skia/src/xps/ |
D | SkXPSDevice.cpp | 2024 SkRect srcBounds = src ? *src : bitmapBounds; in drawImageRect() local 2025 SkMatrix matrix = SkMatrix::RectToRect(srcBounds, dst); in drawImageRect() 2030 if (!srcBounds.intersect(bitmapBounds)) { in drawImageRect() 2033 matrix.mapRect(&actualDst, srcBounds); in drawImageRect()
|