Home
last modified time | relevance | path

Searched refs:pixelBuffer (Results 1 – 25 of 27) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DCopyTests.cpp402 BufferSpec pixelBuffer = MinimumBufferSpec(1, 1); in TEST_P() local
403 DoTest({ kWidth, kHeight, 0, 0, 1, 1, 0 }, pixelBuffer); in TEST_P()
404 DoTest({ kWidth, kHeight, kWidth - 1, 0, 1, 1, 0 }, pixelBuffer); in TEST_P()
405 DoTest({ kWidth, kHeight, 0, kHeight - 1, 1, 1, 0 }, pixelBuffer); in TEST_P()
406 DoTest({ kWidth, kHeight, kWidth - 1, kHeight - 1, 1, 1, 0 }, pixelBuffer); in TEST_P()
407 DoTest({ kWidth, kHeight, kWidth / 3, kHeight / 7, 1, 1, 0 }, pixelBuffer); in TEST_P()
408 DoTest({ kWidth, kHeight, kWidth / 7, kHeight / 3, 1, 1, 0 }, pixelBuffer); in TEST_P()
415 BufferSpec pixelBuffer = MinimumBufferSpec(1, 1); in TEST_P() local
416 DoTest({ kWidth, kHeight, 0, 0, 1, 1, 0 }, pixelBuffer); in TEST_P()
417 DoTest({ kWidth, kHeight, kWidth - 1, 0, 1, 1, 0 }, pixelBuffer); in TEST_P()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLDirectCompositionTest.cpp273 uint8_t *pixelBuffer = static_cast<uint8_t *>(malloc(WINDOWWIDTH * WINDOWHEIGHT * 4)); in TEST_P() local
274 ZeroMemory(pixelBuffer, WINDOWWIDTH * WINDOWHEIGHT * 4); in TEST_P()
279 bool success = mOSWindow->takeScreenshot(pixelBuffer); in TEST_P()
283 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4)] == 255); in TEST_P()
284 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 1] == 0); in TEST_P()
285 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 2] == 0); in TEST_P()
286 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 3] == 255); in TEST_P()
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLDirectCompositionTest.cpp283 uint8_t *pixelBuffer = static_cast<uint8_t *>(malloc(WINDOWWIDTH * WINDOWHEIGHT * 4)); in TEST_P() local
284 ZeroMemory(pixelBuffer, WINDOWWIDTH * WINDOWHEIGHT * 4); in TEST_P()
289 bool success = mOSWindow->takeScreenshot(pixelBuffer); in TEST_P()
293 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4)] == 255); in TEST_P()
294 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 1] == 0); in TEST_P()
295 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 2] == 0); in TEST_P()
296 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 3] == 255); in TEST_P()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DProvokingVertexTest.cpp221 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight() * 4, 0); in TEST_P() local
223 &pixelBuffer[0]); in TEST_P()
244 EXPECT_EQ(vertexData[provokingVertexIndex], pixelBuffer[pixelIndex * 4]); in TEST_P()
270 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight() * 4, 0); in TEST_P() local
272 &pixelBuffer[0]); in TEST_P()
300 EXPECT_EQ(vertexData[provokingVertexIndex], pixelBuffer[pixelIndex * 4]); in TEST_P()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DProvokingVertexTest.cpp216 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight(), 0); in TEST_P() local
218 &pixelBuffer[0]); in TEST_P()
239 EXPECT_EQ(vertexData[provokingVertexIndex], pixelBuffer[pixelIndex]); in TEST_P()
265 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight(), 0); in TEST_P() local
267 &pixelBuffer[0]); in TEST_P()
295 EXPECT_EQ(vertexData[provokingVertexIndex], pixelBuffer[pixelIndex]); in TEST_P()
/third_party/flutter/engine/flutter/shell/platform/darwin/ios/
Dios_external_texture_gl.mm62 auto pixelBuffer = [external_texture_ copyPixelBuffer];
63 if (pixelBuffer) {
64 buffer_ref_.Reset(pixelBuffer);
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DCopyTests.cpp623 BufferSpec pixelBuffer = MinimumBufferSpec(1, 1); in TEST_P() local
632 DoTest(textureSpec, pixelBuffer, kCopySize); in TEST_P()
638 DoTest(textureSpec, pixelBuffer, kCopySize); in TEST_P()
644 DoTest(textureSpec, pixelBuffer, kCopySize); in TEST_P()
650 DoTest(textureSpec, pixelBuffer, kCopySize); in TEST_P()
656 DoTest(textureSpec, pixelBuffer, kCopySize); in TEST_P()
662 DoTest(textureSpec, pixelBuffer, kCopySize); in TEST_P()
670 BufferSpec pixelBuffer = MinimumBufferSpec(1, 1); in TEST_P() local
679 DoTest(textureSpec, pixelBuffer, kCopySize); in TEST_P()
685 DoTest(textureSpec, pixelBuffer, kCopySize); in TEST_P()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageSparseResidency.cpp767 …tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(compatibleFormatDescription, co… in iterate() local
770 m_context.getTestContext().getLog() << tcu::LogImage(str.str(), str.str(), pixelBuffer); in iterate()
795 …tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(compatibleFormatDescription, c… in iterate() local
797 tcu::IVec3 pixelDivider = pixelBuffer.getDivider(); in iterate()
861 …const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX * pixelDivider.x(), offsetY * pixe… in iterate()
873 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
882 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
906 …const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX * pixelDivider.x(), offsetY * pixe… in iterate()
918 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
927 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
[all …]
DvktSparseResourcesImageMemoryAliasing.cpp747 …const tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(formatDescription, gridSize… in iterate() local
748 tcu::IVec3 pixelDivider = pixelBuffer.getDivider(); in iterate()
779 …const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX * pixelDivider.x(), offsetY * pixe… in iterate()
791 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
800 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fPixelBufferObjectTests.cpp541 GLuint pixelBuffer = (GLuint)-1; in iterate() local
543 GLU_CHECK_CALL(glGenBuffers(1, &pixelBuffer)); in iterate()
544 GLU_CHECK_CALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, pixelBuffer)); in iterate()
582 GLU_CHECK_CALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, pixelBuffer)); in iterate()
584 GLU_CHECK_CALL(glDeleteBuffers(1, &pixelBuffer)); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrStorageImageWriteTests.cpp365 …tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(compatibleFormatDescription, co… in testStorageImageWrite() local
368 context.getTestContext().getLog() << tcu::LogImage(str.str(), str.str(), pixelBuffer); in testStorageImageWrite()
383 …tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(compatibleFormatDescription, … in testStorageImageWrite() local
385 tcu::IVec3 pixelDivider = pixelBuffer.getDivider(); in testStorageImageWrite()
420 …tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX * pixelDivider.x(), offsetY * pixelDivid… in testStorageImageWrite()
432 …tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivider.y(… in testStorageImageWrite()
441 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in testStorageImageWrite()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderTests.cpp295 …void setPoint (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& pointColor, …
296 …void fillTriangle (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, co…
297 …void fillLayer (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, cons…
298 …void fillQuarter (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, co…
1259 void MultiViewRenderTestInstance::setPoint (const tcu::PixelBufferAccess& pixelBuffer, const tcu::V… in setPoint() argument
1269 pixelBuffer.setPixel(pointColor, offsetX + x, offsetY + y, layerNdx); in setPoint()
1272 void MultiViewRenderTestInstance::fillTriangle (const tcu::PixelBufferAccess& pixelBuffer, const tc… in fillTriangle() argument
1282 pixelBuffer.setPixel(color, offsetX + x, offsetY + (maxY - 1) - y, layerNdx); in fillTriangle()
1285 pixelBuffer.setPixel(multisampledColor, offsetX + y, offsetY + (maxY - 1) - y, layerNdx); in fillTriangle()
1289 void MultiViewRenderTestInstance::fillLayer (const tcu::PixelBufferAccess& pixelBuffer, const tcu::… in fillLayer() argument
[all …]
/third_party/flutter/engine/flutter/shell/gpu/
Dgpu_surface_gl.cc300 auto pixelBuffer = std::make_unique<char[]>(width * height * pixelSize); in PresentSurface() local
301 SkPixmap data(info, pixelBuffer.get(), width * pixelSize); in PresentSurface()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
Drenderergl_utils.h96 const gl::Buffer *pixelBuffer,
DStateManagerGL.h131 void setPixelUnpackBuffer(const gl::Buffer *pixelBuffer);
133 void setPixelPackBuffer(const gl::Buffer *pixelBuffer);
DStateManagerGL.cpp500 void StateManagerGL::setPixelUnpackBuffer(const gl::Buffer *pixelBuffer) in setPixelUnpackBuffer() argument
503 if (pixelBuffer != nullptr) in setPixelUnpackBuffer()
505 bufferID = GetImplAs<BufferGL>(pixelBuffer)->getBufferID(); in setPixelUnpackBuffer()
545 void StateManagerGL::setPixelPackBuffer(const gl::Buffer *pixelBuffer) in setPixelPackBuffer() argument
548 if (pixelBuffer != nullptr) in setPixelPackBuffer()
550 bufferID = GetImplAs<BufferGL>(pixelBuffer)->getBufferID(); in setPixelPackBuffer()
Drenderergl_utils.cpp1740 const gl::Buffer *pixelBuffer, in ShouldApplyLastRowPaddingWorkaround() argument
1747 if (pixelBuffer == nullptr) in ShouldApplyLastRowPaddingWorkaround()
1779 *shouldApplyOut = checkedEndByte.ValueOrDie() > static_cast<size_t>(pixelBuffer->getSize()); in ShouldApplyLastRowPaddingWorkaround()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
Drenderergl_utils.h146 const gl::Buffer *pixelBuffer,
DStateManagerGL.h242 angle::Result setPixelUnpackBuffer(const gl::Context *context, const gl::Buffer *pixelBuffer);
244 angle::Result setPixelPackBuffer(const gl::Context *context, const gl::Buffer *pixelBuffer);
DStateManagerGL.cpp595 const gl::Buffer *pixelBuffer) in setPixelUnpackBuffer() argument
598 if (pixelBuffer != nullptr) in setPixelUnpackBuffer()
600 bufferID = GetImplAs<BufferGL>(pixelBuffer)->getBufferID(); in setPixelUnpackBuffer()
646 const gl::Buffer *pixelBuffer) in setPixelPackBuffer() argument
649 if (pixelBuffer != nullptr) in setPixelPackBuffer()
651 bufferID = GetImplAs<BufferGL>(pixelBuffer)->getBufferID(); in setPixelPackBuffer()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcInternalformatTests.cpp1238 …tcu::PixelBufferAccess pixelBuffer(tcu::TextureFormat(tcu::TextureFormat::sRGBA, tcu::TextureForma… in iterate() local
1240 glu::readPixels(renderContext, 0, 0, pixelBuffer); in iterate()
1242 convertsRGBA(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()
1244 convertsRGB(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()
1251 …tcu::PixelBufferAccess pixelBuffer(tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat… in iterate() local
1253 glu::readPixels(renderContext, 0, 0, pixelBuffer); in iterate()
1255 convertUInt_2_10_10_10_rev(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()
1257 convertUInt(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiBufferViewAccessTests.cpp439 tcu::ConstPixelBufferAccess pixelBuffer = resultLevel->getAccess(); in checkResult() local
442 tcu::IVec4 pixel = pixelBuffer.getPixelInt(i, i); in checkResult()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmGraphicsShaderTestUtil.cpp4422 …const tcu::ConstPixelBufferAccess pixelBuffer(tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::Te… in runAndVerifyDefaultPipeline() local
4426 context.getTestContext().getLog() << TestLog::Image("Result", "Result", pixelBuffer); in runAndVerifyDefaultPipeline()
4437 const RGBA upperLeft(pixelBuffer.getPixel(1, 1)); in runAndVerifyDefaultPipeline()
4441 const RGBA upperRight(pixelBuffer.getPixel(pixelBuffer.getWidth() - 1, 1)); in runAndVerifyDefaultPipeline()
4445 const RGBA lowerLeft(pixelBuffer.getPixel(1, pixelBuffer.getHeight() - 1)); in runAndVerifyDefaultPipeline()
4449 …const RGBA lowerRight(pixelBuffer.getPixel(pixelBuffer.getWidth() - 1, pixelBuffer.getHeight() - 1… in runAndVerifyDefaultPipeline()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineBindPointTests.cpp764 const auto pixelBuffer = textureLevel->getAccess(); in iterate() local
772 const auto value = pixelBuffer.getPixel(x, y); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageAtomicOperationTests.cpp512 …tcu::PixelBufferAccess pixelBuffer (format, gridSize.x(), gridSize.y(), gridSize.z(), bufferAllo… in initDataForImage() local
522 *((deInt64*)pixelBuffer.getPixelPtr(x, y, z)) = initialValue; in initDataForImage()
533 pixelBuffer.setPixel(initialValue, x, y, z); in initDataForImage()

12