Home
last modified time | relevance | path

Searched refs:sourceArea (Results 1 – 25 of 44) sorted by relevance

12

/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DBlit11.cpp52 void StretchedBlitNearest_RowByRow(const gl::Box &sourceArea, in StretchedBlitNearest_RowByRow() argument
62 int srcHeightSubOne = (sourceArea.height - 1); in StretchedBlitNearest_RowByRow()
64 size_t srcOffset = sourceArea.x * pixelSize; in StretchedBlitNearest_RowByRow()
75 gl::clamp(sourceArea.y + floor(yPerc * srcHeightSubOne + 0.5f), 0, srcHeightSubOne)); in StretchedBlitNearest_RowByRow()
84 void StretchedBlitNearest_PixelByPixel(const gl::Box &sourceArea, in StretchedBlitNearest_PixelByPixel() argument
106 float yRounded = floor(yPerc * (sourceArea.height - 1) + 0.5f); in StretchedBlitNearest_PixelByPixel()
108 static_cast<unsigned int>(gl::clamp(sourceArea.y + yRounded, 0, sourceSize.height - 1)); in StretchedBlitNearest_PixelByPixel()
115 float xRounded = floor(xPerc * (sourceArea.width - 1) + 0.5f); in StretchedBlitNearest_PixelByPixel()
117 gl::clamp(sourceArea.x + xRounded, 0, sourceSize.width - 1)); in StretchedBlitNearest_PixelByPixel()
130 void StretchedBlitNearest(const gl::Box &sourceArea, in StretchedBlitNearest() argument
[all …]
DImage11.cpp375 const gl::Rectangle &sourceArea, in copyFromFramebuffer() argument
394 gl::Box sourceBox(sourceArea.x, sourceArea.y, 0, sourceArea.width, sourceArea.height, 1); in copyFromFramebuffer()
420 size_t bufferSize = destFormatInfo.pixelBytes * sourceArea.width * sourceArea.height; in copyFromFramebuffer()
427 GLuint memoryBufferRowPitch = destFormatInfo.pixelBytes * sourceArea.width; in copyFromFramebuffer()
430 context, *srcAttachment, sourceArea, destFormatInfo.format, destFormatInfo.type, in copyFromFramebuffer()
433 loadFunction.loadFunction(sourceArea.width, sourceArea.height, 1, memoryBuffer->data(), in copyFromFramebuffer()
441 context, *srcAttachment, sourceArea, destFormatInfo.format, destFormatInfo.type, in copyFromFramebuffer()
453 const gl::Box &sourceArea, in copyWithoutConversion() argument
467 srcBox.left = sourceArea.x; in copyWithoutConversion()
468 srcBox.right = sourceArea.x + sourceArea.width; in copyWithoutConversion()
[all …]
DBlit11.h39 const gl::Box &sourceArea,
56 const gl::Box &sourceArea,
66 const gl::Box &sourceArea,
76 const gl::Box &sourceArea,
93 using BlitConvertFunction = void(const gl::Box &sourceArea,
127 typedef void (*WriteVertexFunction)(const gl::Box &sourceArea,
185 const gl::Box &sourceArea,
197 const gl::Box &sourceArea,
213 const gl::Box &sourceArea,
DFramebuffer11.cpp277 const gl::Rectangle &sourceArea, in blitImpl() argument
311 gl::Rectangle actualSourceArea = sourceArea; in blitImpl()
315 actualSourceArea.y = readRenderTarget11->getHeight() - sourceArea.y; in blitImpl()
316 actualSourceArea.height = -sourceArea.height; in blitImpl()
350 gl::Rectangle actualSourceArea = sourceArea; in blitImpl()
354 actualSourceArea.y = readRenderTarget11->getHeight() - sourceArea.y; in blitImpl()
355 actualSourceArea.height = -sourceArea.height; in blitImpl()
DImage11.h86 const gl::Rectangle &sourceArea,
106 const gl::Box &sourceArea,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DBlitGL.cpp273 const gl::Rectangle &sourceArea, in copyImageToLUMAWorkaroundTexture() argument
290 sourceArea.width, sourceArea.height, 0, format, readType, nullptr)); in copyImageToLUMAWorkaroundTexture()
293 level, gl::Offset(0, 0, 0), sourceArea, source); in copyImageToLUMAWorkaroundTexture()
303 const gl::Rectangle &sourceArea, in copySubImageToLUMAWorkaroundTexture() argument
324 sourceArea.x, sourceArea.y, sourceArea.width, in copySubImageToLUMAWorkaroundTexture()
325 sourceArea.height, 0)); in copySubImageToLUMAWorkaroundTexture()
343 sourceArea.width, sourceArea.height, 0, in copySubImageToLUMAWorkaroundTexture()
353 ANGLE_TRY(scopedState.enter(context, gl::Rectangle(0, 0, sourceArea.width, sourceArea.height))); in copySubImageToLUMAWorkaroundTexture()
380 sourceArea.width, sourceArea.height)); in copySubImageToLUMAWorkaroundTexture()
387 destOffset.y, 0, 0, sourceArea.width, sourceArea.height)); in copySubImageToLUMAWorkaroundTexture()
[all …]
DBlitGL.h55 const gl::Rectangle &sourceArea,
66 const gl::Rectangle &sourceArea,
72 const gl::Rectangle &sourceArea,
80 const gl::Rectangle &sourceArea,
90 const gl::Rectangle &sourceArea,
104 const gl::Rectangle &sourceArea,
123 const gl::Rectangle &sourceArea,
137 const gl::Rectangle &sourceArea,
DTextureGL.cpp656 const gl::Rectangle &sourceArea, in copyImage() argument
677 bool outside = sourceArea.x < 0 || sourceArea.y < 0 || in copyImage()
678 sourceArea.x + sourceArea.width > fbSize.width || in copyImage()
679 sourceArea.y + sourceArea.height > fbSize.height; in copyImage()
697 context->getZeroFilledBuffer(sourceArea.width * sourceArea.height * pixelBytes, &zero)); in copyImage()
706 copyTexImageFormat.internalFormat, sourceArea.width, in copyImage()
707 sourceArea.height, 0, in copyImage()
714 if (ClipRectangle(sourceArea, gl::Rectangle(0, 0, fbSize.width, fbSize.height), &clippedArea)) in copyImage()
739 gl::Offset destOffset(clippedArea.x - sourceArea.x, clippedArea.y - sourceArea.y, 0); in copyImage()
803 const gl::Rectangle &sourceArea, in copySubImage() argument
[all …]
DFramebufferGL.cpp54 const gl::Rectangle &sourceArea, in GetBlitFramebufferBounds() argument
66 bounds.sourceRegion = sourceArea.removeReversal(); in GetBlitFramebufferBounds()
71 bounds.xFlipped = sourceArea.isReversedX() != destArea.isReversedX(); in GetBlitFramebufferBounds()
72 bounds.yFlipped = sourceArea.isReversedY() != destArea.isReversedY(); in GetBlitFramebufferBounds()
742 const gl::Rectangle &sourceArea, in blit() argument
826 sourceArea, destArea, filter, in blit()
840 gl::Rectangle finalSourceArea(sourceArea); in blit()
871 const gl::Rectangle &sourceArea, in adjustSrcDstRegion() argument
876 BlitFramebufferBounds bounds = GetBlitFramebufferBounds(context, sourceArea, destArea); in adjustSrcDstRegion()
1129 *newSourceArea = bounds.sourceRegion.flip(sourceArea.isReversedX(), sourceArea.isReversedY()); in adjustSrcDstRegion()
[all …]
DFramebufferGL.h70 const gl::Rectangle &sourceArea,
125 const gl::Rectangle &sourceArea,
131 const gl::Rectangle &sourceArea,
DTextureGL.h105 const gl::Rectangle &sourceArea,
111 const gl::Rectangle &sourceArea,
137 const gl::Rectangle &sourceArea,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DFramebufferVk.cpp191 void AdjustBlitResolveParametersForResolve(const gl::Rectangle &sourceArea, in AdjustBlitResolveParametersForResolve() argument
195 params->srcOffset[0] = sourceArea.x; in AdjustBlitResolveParametersForResolve()
196 params->srcOffset[1] = sourceArea.y; in AdjustBlitResolveParametersForResolve()
200 if (sourceArea.isReversedX()) in AdjustBlitResolveParametersForResolve()
202 ASSERT(sourceArea.x > 0); in AdjustBlitResolveParametersForResolve()
205 if (sourceArea.isReversedY()) in AdjustBlitResolveParametersForResolve()
207 ASSERT(sourceArea.y > 0); in AdjustBlitResolveParametersForResolve()
839 const gl::Rectangle &sourceArea, in blitWithCommand() argument
883 blit.srcOffsets[0] = {sourceArea.x0(), sourceArea.y0(), 0}; in blitWithCommand()
884 blit.srcOffsets[1] = {sourceArea.x1(), sourceArea.y1(), 1}; in blitWithCommand()
[all …]
DTextureVk.h75 const gl::Rectangle &sourceArea,
81 const gl::Rectangle &sourceArea,
354 const gl::Box &sourceArea,
363 const gl::Box &sourceArea,
391 const gl::Rectangle &sourceArea,
DTextureVk.cpp572 const gl::Rectangle &sourceArea, in copyImage() argument
578 gl::Extents newImageSize(sourceArea.width, sourceArea.height, 1); in copyImage()
585 return copySubImageImpl(context, index, gl::Offset(0, 0, 0), sourceArea, internalFormatInfo, in copyImage()
592 const gl::Rectangle &sourceArea, in copySubImage() argument
596 return copySubImageImpl(context, index, destOffset, sourceArea, currentFormat, source); in copySubImage()
727 const gl::Rectangle &sourceArea, in copySubImageImpl() argument
733 if (!ClipRectangle(sourceArea, gl::Rectangle(0, 0, fbSize.width, fbSize.height), in copySubImageImpl()
750 const gl::Offset modifiedDestOffset(destOffset.x + clippedSourceArea.x - sourceArea.x, in copySubImageImpl()
751 destOffset.y + clippedSourceArea.y - sourceArea.y, zOffset); in copySubImageImpl()
1693 const gl::Box &sourceArea, in copyImageDataToBufferAndGetData() argument
[all …]
DFramebufferVk.h105 const gl::Rectangle &sourceArea,
171 const gl::Rectangle &sourceArea,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DFramebuffer9.cpp217 const gl::Rectangle &sourceArea, in blitImpl() argument
263 srcRect.left = sourceArea.x; in blitImpl()
264 srcRect.right = sourceArea.x + sourceArea.width; in blitImpl()
265 srcRect.top = sourceArea.y; in blitImpl()
266 srcRect.bottom = sourceArea.y + sourceArea.height; in blitImpl()
DImage9.cpp557 const gl::Rectangle &sourceArea, in copyFromRTInternal() argument
586 int width = sourceArea.width; in copyFromRTInternal()
587 int height = sourceArea.height; in copyFromRTInternal()
589 RECT sourceRect = {sourceArea.x, sourceArea.y, sourceArea.x + width, sourceArea.y + height}; in copyFromRTInternal()
776 gl::Rectangle sourceArea(0, 0, mWidth, mHeight); in copyFromTexStorage() local
777 return copyFromRTInternal(GetImplAs<Context9>(context), gl::Offset(), sourceArea, renderTarget); in copyFromTexStorage()
782 const gl::Rectangle &sourceArea, in copyFromFramebuffer() argument
791 return copyFromRTInternal(GetImplAs<Context9>(context), destOffset, sourceArea, renderTarget); in copyFromFramebuffer()
DImage9.h84 const gl::Rectangle &sourceArea,
99 const gl::Rectangle &sourceArea,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DTextureD3D.cpp1059 const gl::Rectangle &sourceArea, in copyImage() argument
1067 gl::Extents sourceExtents(sourceArea.width, sourceArea.height, 1); in copyImage()
1074 bool outside = sourceArea.x < 0 || sourceArea.y < 0 || in copyImage()
1075 sourceArea.x + sourceArea.width > fbSize.width || in copyImage()
1076 sourceArea.y + sourceArea.height > fbSize.height; in copyImage()
1087 if (!ClipRectangle(sourceArea, gl::Rectangle(0, 0, fbSize.width, fbSize.height), &clippedArea)) in copyImage()
1093 gl::Offset destOffset(clippedArea.x - sourceArea.x, clippedArea.y - sourceArea.y, 0); in copyImage()
1123 const gl::Rectangle &sourceArea, in copySubImage() argument
1130 if (!ClipRectangle(sourceArea, gl::Rectangle(0, 0, fbSize.width, fbSize.height), &clippedArea)) in copySubImage()
1134 const gl::Offset clippedOffset(destOffset.x + clippedArea.x - sourceArea.x, in copySubImage()
[all …]
DTextureD3D.h268 const gl::Rectangle &sourceArea,
274 const gl::Rectangle &sourceArea,
400 const gl::Rectangle &sourceArea,
406 const gl::Rectangle &sourceArea,
533 const gl::Rectangle &sourceArea,
539 const gl::Rectangle &sourceArea,
663 const gl::Rectangle &sourceArea,
669 const gl::Rectangle &sourceArea,
791 const gl::Rectangle &sourceArea,
797 const gl::Rectangle &sourceArea,
DFramebufferD3D.h90 const gl::Rectangle &sourceArea,
125 const gl::Rectangle &sourceArea,
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DTexture.cpp1310 const Rectangle &sourceArea, in copyImage() argument
1340 forceCopySubImage = ((sourceArea.x < 0) || (sourceArea.y < 0) || in copyImage()
1341 ((sourceArea.x + sourceArea.width) > fbSize.width) || in copyImage()
1342 ((sourceArea.y + sourceArea.height) > fbSize.height)) && in copyImage()
1345 if (ClipRectangle(sourceArea, Rectangle(0, 0, fbSize.width, fbSize.height), &clippedArea)) in copyImage()
1347 const Offset clippedOffset(clippedArea.x - sourceArea.x, clippedArea.y - sourceArea.y, in copyImage()
1359 Extents size(sourceArea.width, sourceArea.height, 1); in copyImage()
1367 ANGLE_TRY(mTexture->copySubImage(context, index, Offset(), sourceArea, source)); in copyImage()
1371 ANGLE_TRY(mTexture->copyImage(context, index, sourceArea, internalFormat, source)); in copyImage()
1388 const Rectangle &sourceArea, in copySubImage() argument
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DTextureMtl.h75 const gl::Rectangle &sourceArea,
81 const gl::Rectangle &sourceArea,
234 const gl::Rectangle &sourceArea,
241 const gl::Rectangle &sourceArea,
248 const gl::Rectangle &sourceArea,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/null/
DTextureNULL.h59 const gl::Rectangle &sourceArea,
65 const gl::Rectangle &sourceArea,
DTextureNULL.cpp72 const gl::Rectangle &sourceArea, in copyImage() argument
82 const gl::Rectangle &sourceArea, in copySubImage() argument

12