/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fFramebufferBlitTests.cpp | 59 BlitRectCase (Context& context, const char* name, const char* desc, deUint32 filter, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect, int cellSize = 8) in BlitRectCase() argument 65 , m_dstRect (dstRect) in BlitRectCase() 170 BlitNearestFilterConsistencyCase (Context& context, const char* name, const char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect); 175 BlitNearestFilterConsistencyCase::BlitNearestFilterConsistencyCase (Context& context, const char* name, const char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect) in BlitNearestFilterConsistencyCase() argument 176 : BlitRectCase(context, name, desc, GL_NEAREST, srcSize, srcRect, dstSize, dstRect, 1) in BlitNearestFilterConsistencyCase() 462 BlitDepthStencilCase (Context& context, const char* name, const char* desc, deUint32 depthFormat, deUint32 stencilFormat, deUint32 srcBuffers, const IVec2& srcSize, const IVec4& srcRect, deUint32 dstBuffers, const IVec2& dstSize, const IVec4& dstRect, deUint32 copyBuffers) in BlitDepthStencilCase() argument 471 , m_dstRect (dstRect) in BlitDepthStencilCase() 966 IVec4 dstRect; 978 IVec4 dstRect; 1017 IVec4 dstRect [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
H A D | Device.hpp | 78 static bool ClipDstRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX = false, bool flipY = false); 79 static bool ClipSrcRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX = false, bool flipY = false);
|
/third_party/skia/tests/ |
H A D | RepeatedClippedBlurTest.cpp | 100 SkRect dstRect = SkRect::MakeXYWH(offset.fX, offset.fY, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 102 dstCanvas->drawImageRect(filteredImg, SkRect::Make(outSubset), dstRect, SkSamplingOptions(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
H A D | VkDrawableTest.cpp | 160 SkRect dstRect = SkRect::MakeXYWH(3*td->fWidth/4, 0, td->fWidth/4, td->fHeight); in ImportDraw() local 162 canvas->drawImageRect(surf->makeImageSnapshot(), srcRect, dstRect, SkSamplingOptions(), in ImportDraw()
|
/third_party/skia/gm/ |
H A D | tallstretchedbitmaps.cpp | 95 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); variable 96 canvas->drawImageRect(bmp.asImage(), SkRect::Make(subRect), dstRect,
|
H A D | imagemakewithfilter.cpp | 352 const SkIRect& subset, SkIRect* dstRect) { in drawImageWithFilter() 376 *dstRect = subset; in drawImageWithFilter() 389 *dstRect = SkIRect::MakeXYWH(offset.x(), offset.y(), in drawImageWithFilter() 391 canvas->drawImageRect(result, SkRect::Make(outSubset), SkRect::Make(*dstRect), in drawImageWithFilter() 350 drawImageWithFilter(SkCanvas* canvas, sk_sp<SkImage> mainImage, sk_sp<SkImage> auxImage, FilterFactory filterFactory, const SkIRect& clip, const SkIRect& subset, SkIRect* dstRect) drawImageWithFilter() argument
|
H A D | wacky_yuv_formats.cpp | 909 SkRect dstRect = SkRect::MakeXYWH(kLabelWidth, 0.f, srcRect.width(), srcRect.height()); variable 916 dstRect.fRight = kLabelWidth + 1.5f * srcRect.width(); 917 dstRect.fBottom = 1.5f * srcRect.height(); 930 dstRect.offsetTo(dstRect.fLeft, kLabelHeight); 932 draw_col_label(canvas, dstRect.fLeft + cellWidth / 2, cs, opaque); 934 canvas->drawImageRect(fOriginalBMs[opaque].asImage(), srcRect, dstRect, 936 dstRect.offset(0.f, cellHeight + kPad); 939 draw_row_label(canvas, dstRect.fTop, format); 946 canvas->drawImageRect(csImage, srcRect, dstRect, samplin [all...] |
H A D | bleed.cpp | 127 void drawImage(SkCanvas* canvas, sk_sp<SkImage> image, SkRect srcRect, SkRect dstRect, in drawImage() argument 133 imageSetEntry[0].fDstRect = dstRect; in drawImage() 141 canvas->drawImageRect(image.get(), srcRect, dstRect, sampling, paint, fConstraint); in drawImage()
|
/third_party/vk-gl-cts/framework/opengl/simplereference/ |
H A D | sglrReferenceContext.cpp | 3073 deUint32 ReferenceContext::blitResolveMultisampleFramebuffer (deUint32 mask, const IVec4& srcRect, const IVec4& dstRect, bool flipX, bool flipY) 3078 tcu::PixelBufferAccess dst = tcu::getSubregion(getDrawColorbuffer().toSinglesampleAccess(), dstRect.x(), dstRect.y(), dstRect.z(), dstRect.w()); 3098 for (int x = 0; x < dstRect.z(); ++x) 3099 for (int y = 0; y < dstRect.w(); ++y) 3117 rr::MultisamplePixelBufferAccess dst = rr::getSubregion(getDrawDepthbuffer(), dstRect.x(), dstRect.y(), dstRect [all...] |
/third_party/skia/src/effects/imagefilters/ |
H A D | SkLightingImageFilter.cpp | 444 const SkIRect& dstRect, 461 const SkIRect& dstRect, in drawRect() 465 SkIRect srcRect = dstRect.makeOffset(bounds.topLeft()); in drawRect() 468 sfc->fillRectToRectWithFP(srcRect, dstRect, std::move(fp)); in drawRect() 497 SkIRect dstRect = SkIRect::MakeWH(offsetBounds.width(), offsetBounds.height()); in filterImageGPU() local 501 SkIRect top = SkIRect::MakeXYWH(1, 0, dstRect.width() - 2, 1); in filterImageGPU() 502 SkIRect topRight = SkIRect::MakeXYWH(dstRect.width() - 1, 0, 1, 1); in filterImageGPU() 503 SkIRect left = SkIRect::MakeXYWH(0, 1, 1, dstRect.height() - 2); in filterImageGPU() 504 SkIRect interior = dstRect.makeInset(1, 1); in filterImageGPU() 505 SkIRect right = SkIRect::MakeXYWH(dstRect in filterImageGPU() 458 drawRect(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView srcView, const SkMatrix& matrix, const SkIRect& dstRect, BoundaryMode boundaryMode, const SkIRect* srcBounds, const SkIRect& bounds) const drawRect() argument [all...] |
/third_party/skia/src/gpu/vk/ |
H A D | GrVkGpu.cpp | 2344 SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, in copySurfaceAsCopyImage() local 2347 this->didWriteToSurface(dst, kTopLeft_GrSurfaceOrigin, &dstRect); in copySurfaceAsCopyImage() 2396 SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, srcRect.width(), in copySurfaceAsBlit() local 2405 blitRegion.dstOffsets[0] = { dstRect.fLeft, dstRect.fTop, 0 }; in copySurfaceAsBlit() 2406 blitRegion.dstOffsets[1] = { dstRect.fRight, dstRect.fBottom, 1 }; in copySurfaceAsBlit() 2418 this->didWriteToSurface(dst, kTopLeft_GrSurfaceOrigin, &dstRect); in copySurfaceAsBlit() 2429 SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, in copySurfaceAsResolve() local 2432 this->didWriteToSurface(dst, kTopLeft_GrSurfaceOrigin, &dstRect); in copySurfaceAsResolve() [all...] |
H A D | GrVkCommandBuffer.cpp | 969 dstRegion.offset = { blurArg.dstRect.fLeft , blurArg.dstRect.fTop }; 970 dstRegion.extent = { (uint32_t)blurArg.dstRect.width(), (uint32_t)blurArg.dstRect.height() }; 973 dstRegion.offset.y = colorAttachmentDimensions.height() - blurArg.dstRect.fBottom;
|
/third_party/skia/src/core/ |
H A D | SkGpuBlurUtils.cpp | 65 * Draws 'dstRect' into 'surfaceFillContext' evaluating a 1D Gaussian over 'srcView'. The src rect 66 * is 'dstRect' offset by 'dstToSrcOffset'. 'mode' and 'bounds' are applied to the src coords. 72 const SkIRect& dstRect, in convolve_gaussian_1d() 80 auto srcRect = dstRect.makeOffset(dstToSrcOffset); in convolve_gaussian_1d() 95 sfc->fillRectToRectWithFP(srcRect, dstRect, std::move(conv)); in convolve_gaussian_1d() 190 auto dstRect = SkIRect::MakeSize(dstBounds.size()); in convolve_gaussian() local 192 rtcToSrcOffset, dstRect, srcAlphaType, direction, radius, sigma, mode); in convolve_gaussian() 639 auto cheapDownscale = [&](SkIRect dstRect, SkIRect srcRect) { in GaussianBlur() 648 SkRect::Make(dstRect), in GaussianBlur() 68 convolve_gaussian_1d(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView srcView, const SkIRect srcSubset, SkIVector dstToSrcOffset, const SkIRect& dstRect, SkAlphaType srcAlphaType, Direction direction, int radius, float sigma, SkTileMode mode) convolve_gaussian_1d() argument
|
/third_party/skia/src/gpu/v1/ |
H A D | SurfaceFillContext_v1.h | 41 void fillRectWithFP(const SkIRect& dstRect, std::unique_ptr<GrFragmentProcessor> fp) override;
|
H A D | Device_drawTexture.cpp | 339 // Assumes srcRect and dstRect have already been optimized to fit the proxy 346 const SkRect& dstRect, in draw_texture() 377 GrMapRectPoints(dstRect, srcRect, dstClip, srcQuad, 4); in draw_texture() 403 dstRect, in draw_texture() 412 // Assumes srcRect and dstRect have already been optimized to fit the proxy. 464 // combining by not baking anything about the srcRect, dstRect, or ctm, into the texture in draw_image() 753 const SkRect* dstRect, in drawImageQuad() 765 srcRect, dstRect, dstClip, &src, &dst, &srcToDst); in drawImageQuad() 340 draw_texture(skgpu::v1::SurfaceDrawContext* sdc, const GrClip* clip, const SkMatrix& ctm, const SkPaint& paint, GrSamplerState::Filter filter, const SkRect& srcRect, const SkRect& dstRect, const SkPoint dstClip[4], GrAA aa, GrQuadAAFlags aaFlags, SkCanvas::SrcRectConstraint constraint, GrSurfaceProxyView view, const GrColorInfo& srcColorInfo) draw_texture() argument 751 drawImageQuad(const SkImage* image, const SkRect* srcRect, const SkRect* dstRect, const SkPoint dstClip[4], GrAA aa, GrQuadAAFlags aaFlags, const SkMatrix* preViewMatrix, const SkSamplingOptions& origSampling, const SkPaint& paint, SkCanvas::SrcRectConstraint constraint) drawImageQuad() argument
|
/third_party/skia/src/image/ |
H A D | SkImage.cpp | 561 SkIRect dstRect = result->subset(); in makeWithFilter() local 562 SkIRect clippedDstRect = dstRect; in makeWithFilter() 568 offset->fX += (clippedDstRect.x() - dstRect.x()); in makeWithFilter() 569 offset->fY += (clippedDstRect.y() - dstRect.y()); in makeWithFilter()
|
/third_party/skia/src/gpu/gl/ |
H A D | GrGLGpu.cpp | 969 SkIRect dstRect, in uploadColorTypeTexData() 988 this->uploadTexData(texDims, target, dstRect, externalFormat, externalType, bpp, texels, in uploadColorTypeTexData() 1035 SkIRect dstRect, in uploadTexData() 1042 SkASSERT(!dstRect.isEmpty()); in uploadTexData() 1043 SkASSERT(SkIRect::MakeSize(texDims).contains(dstRect)); in uploadTexData() 1045 SkASSERT(mipLevelCount == 1 || dstRect == SkIRect::MakeSize(texDims)); in uploadTexData() 1054 SkISize dims = dstRect.size(); in uploadTexData() 1071 GL_CALL(TexSubImage2D(target, level, dstRect.x(), dstRect.y(), dims.width(), dims.height(), in uploadTexData() 3366 SkIRect dstRect in copySurfaceAsDraw() local 965 uploadColorTypeTexData(GrGLFormat textureFormat, GrColorType textureColorType, SkISize texDims, GrGLenum target, SkIRect dstRect, GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount) uploadColorTypeTexData() argument 1033 uploadTexData(SkISize texDims, GrGLenum target, SkIRect dstRect, GrGLenum externalFormat, GrGLenum externalType, size_t bpp, const GrMipLevel texels[], int mipLevelCount) uploadTexData() argument 3428 SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, copySurfaceAsCopyTexSubImage() local 3437 SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, copySurfaceAsBlitFramebuffer() local [all...] |
H A D | GrGLGpu.h | 475 // it to GL. 'dstRect' must be the texture bounds if mipLevelCount is greater than 1. 480 SkIRect dstRect, 495 // Pushes data to the currently bound texture to the currently active unit. 'dstRect' must be 499 SkIRect dstRect,
|
/third_party/skia/src/gpu/ops/ |
H A D | TextureOp.cpp | 73 SkRect dstRect; in filter_and_mm_have_effect() local 74 if (srcQuad.asRect(&srcRect) && dstQuad.asRect(&dstRect)) { in filter_and_mm_have_effect() 79 bool filter = srcRect.width() != dstRect.width() || srcRect.height() != dstRect.height() || in filter_and_mm_have_effect() 80 SkScalarFraction(srcRect.fLeft) != SkScalarFraction(dstRect.fLeft) || in filter_and_mm_have_effect() 81 SkScalarFraction(srcRect.fTop) != SkScalarFraction(dstRect.fTop); in filter_and_mm_have_effect() 82 bool mm = srcRect.width() > dstRect.width() || srcRect.height() > dstRect.height(); in filter_and_mm_have_effect() 545 // Use dstRect/srcRect unless dstClip is provided, in which case derive new source in TextureOpImpl() 546 // coordinates by mapping dstClipQuad by the dstRect t in TextureOpImpl() [all...] |
H A D | SoftwarePathRenderer.cpp | 213 SkRect dstRect = SkRect::Make(deviceSpaceRectToDraw); in DrawToTargetWithShapeMask() local 225 dstRect, invert); in DrawToTargetWithShapeMask()
|
/third_party/skia/src/gpu/ |
H A D | SurfaceContext.h | 170 SkIRect dstRect,
|
/third_party/skia/tools/ |
H A D | DDLTileHelper.cpp | 84 SkRect dstRect = SkRect::Make(tile->clipRect()); in createComposeDDL() local 90 recordingCanvas->drawImageRect(promiseImage.get(), SkRect::Make(srcRect), dstRect, in createComposeDDL()
|
/third_party/skia/bench/ |
H A D | CompositingImagesBench.cpp | 282 SkRect dstRect = SkRect::MakeXYWH(dstWidth * x, dstHeight * y, dstWidth, dstHeight); in getEntry() local 283 return SkCanvas::ImageSetEntry(fImages[imageIdx], srcRect, dstRect, 1.f, in getEntry() 303 // Story entry's dstRect into dstQuad, and use contentRect and contentDst as its src and dst in getAdjustedEntry()
|
/third_party/skia/include/effects/ |
H A D | SkImageFilters.h | 197 * Create a filter that draws the 'srcRect' portion of image into 'dstRect' using the given 200 * @param srcRect The source pixels sampled into 'dstRect' 201 * @param dstRect The local rectangle to draw the image into. 205 const SkRect& dstRect, const SkSamplingOptions& sampling);
|
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DGpu.cpp | 522 SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, in copySurfaceAsCopyTexture() local 525 this->didWriteToSurface(dst, kTopLeft_GrSurfaceOrigin, &dstRect); in copySurfaceAsCopyTexture() 534 SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, in copySurfaceAsResolve() local 537 this->didWriteToSurface(dst, kTopLeft_GrSurfaceOrigin, &dstRect); in copySurfaceAsResolve()
|