Home
last modified time | relevance | path

Searched refs:kImageWidth (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/tests/
DVkYcbcrSamplerTest.cpp20 const size_t kImageWidth = 8; variable
42 if (!ycbcrHelper.createBackendTexture(kImageWidth, kImageHeight)) { in DEF_GPUTEST()
60 SkImageInfo::Make(kImageWidth, kImageHeight, kN32_SkColorType, kPremul_SkAlphaType)); in DEF_GPUTEST()
68 std::vector<uint8_t> readbackData(kImageWidth * kImageHeight * 4); in DEF_GPUTEST()
69 if (!surface->readPixels(SkImageInfo::Make(kImageWidth, kImageHeight, kRGBA_8888_SkColorType, in DEF_GPUTEST()
71 readbackData.data(), kImageWidth * 4, 0, 0)) { in DEF_GPUTEST()
83 for (size_t x = 0; x < kImageWidth; x += 2) { in DEF_GPUTEST()
84 auto y2 = VkYcbcrSamplerHelper::GetExpectedY(x, y, kImageWidth, kImageHeight); in DEF_GPUTEST()
85 auto [u, v] = VkYcbcrSamplerHelper::GetExpectedUV(x, y, kImageWidth, kImageHeight); in DEF_GPUTEST()
100 int r = readbackData[(y * kImageWidth + x) * 4]; in DEF_GPUTEST()
[all …]
DGrMeshTest.cpp43 static constexpr int kImageWidth = kBoxCountY * kBoxSize; variable
114 {kImageWidth, kImageHeight}, SkSurfaceProps());
128 gold.allocN32Pixels(kImageWidth, kImageHeight);
413 SkRect::MakeIWH(kImageWidth, kImageHeight), HasAABloat::kNo, IsHairline::kNo);
577 fState->opsRenderPass()->bindPipeline(programInfo, SkRect::MakeIWH(kImageWidth, kImageHeight));
594 if (sizeof(uint32_t) * kImageWidth != gold.rowBytes()) {
616 uint32_t expected = goldPx[y * kImageWidth + x];
617 uint32_t actual = static_cast<uint32_t*>(resultPM.addr())[y * kImageWidth + x];
/third_party/flutter/skia/tests/
DVkYcbcrSamplerTest.cpp20 const size_t kImageWidth = 8; variable
24 return 16 + (x + y) * 219 / (kImageWidth + kImageHeight - 2); in getY()
26 static int getU(size_t x, size_t y) { return 16 + x * 224 / (kImageWidth - 1); } in getU()
209 vkImageInfo.extent = VkExtent3D{kImageWidth, kImageHeight, 1}; in createI420Image()
273 for (size_t x = 0; x < kImageWidth; ++x) { in createI420Image()
284 for (size_t x = 0; x < kImageWidth / 2; ++x) { in createI420Image()
323 texture = GrBackendTexture(kImageWidth, kImageHeight, imageInfo); in createI420Image()
359 SkImageInfo::Make(kImageWidth, kImageHeight, kN32_SkColorType, kPremul_SkAlphaType)); in DEF_GPUTEST()
367 std::vector<uint8_t> readbackData(kImageWidth * kImageHeight * 4); in DEF_GPUTEST()
368 if (!surface->readPixels(SkImageInfo::Make(kImageWidth, kImageHeight, kRGBA_8888_SkColorType, in DEF_GPUTEST()
[all …]
DGrMeshTest.cpp38 static constexpr int kImageWidth = kBoxCountY * kBoxSize; variable
87 SkBackingFit::kExact, kImageWidth, kImageHeight, GrColorType::kRGBA_8888, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
101 gold.allocN32Pixels(kImageWidth, kImageHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
270 this->setBounds(SkRect::MakeIWH(kImageWidth, kImageHeight), in GrMeshTestOp()
386 SkRect::MakeIWH(kImageWidth, kImageHeight)); in drawMesh()
398 if (sizeof(uint32_t) * kImageWidth != gold.rowBytes()) { in run_test()
403 SkAutoSTMalloc<kImageHeight * kImageWidth, uint32_t> resultPx(h * rowBytes); in run_test()
410 uint32_t expected = goldPx[y * kImageWidth + x]; in run_test()
411 uint32_t actual = resultPx[y * kImageWidth + x]; in run_test()
/third_party/skia/gm/
Dpathcontourstart.cpp53 SkISize onISize() override { return SkISize::Make(kImageWidth, kImageHeight); } in onISize()
87 inline static constexpr int kImageWidth = 1200; member in skiagm::ContourStartGM
96 canvas->translate(kImageWidth / 10, 0); in drawDirs()
98 canvas->translate(kImageWidth / 10, 0); in drawDirs()
Drrects.cpp79 SkISize onISize() override { return SkISize::Make(kImageWidth, kImageHeight); } in onISize()
104 const SkRect kMaxImageBound = SkRect::MakeWH(SkIntToScalar(kImageWidth), in onDraw()
146 canvas->setMatrix(SkMatrix::Scale(kImageWidth, kImageHeight)); in onDraw()
154 if (x > kImageWidth) { in onDraw()
191 inline static constexpr int kImageWidth = 640; member in skiagm::RRectGM
Dnested.cpp46 return SkISize::Make(kImageWidth, kImageHeight); in onISize()
92 for (int x = 0; x < kImageWidth; x += 10) { in onDraw()
134 inline static constexpr int kImageWidth = 269; member in skiagm::NestedGM
/third_party/flutter/skia/gm/
Dpathcontourstart.cpp54 SkISize onISize() override { return SkISize::Make(kImageWidth, kImageHeight); } in onISize()
101 static constexpr int kImageWidth = 1200; member in skiagm::ContourStartGM
110 canvas->translate(kImageWidth / 10, 0); in drawDirs()
112 canvas->translate(kImageWidth / 10, 0); in drawDirs()
Drrects.cpp80 SkISize onISize() override { return SkISize::Make(kImageWidth, kImageHeight); } in onISize()
99 const SkRect kMaxImageBound = SkRect::MakeWH(SkIntToScalar(kImageWidth), in onDraw()
149 if (x > kImageWidth) { in onDraw()
186 static constexpr int kImageWidth = 640; member in skiagm::RRectGM
Dnested.cpp46 return SkISize::Make(kImageWidth, kImageHeight); in onISize()
92 for (int x = 0; x < kImageWidth; x += 10) { in onDraw()
134 static constexpr int kImageWidth = 269; member in skiagm::NestedGM
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/
DvktRenderPassMultipleSubpassesMultipleCommandBuffersTests.cpp100 static constexpr deUint32 kImageWidth = 32; member in vkt::renderpass::__anon26bc063f0111::MultipleSubpassesMultipleCommandBuffersTestInstance
102 const tcu::UVec2 m_renderSize = { kImageWidth, kImageHeight };
289 { kImageWidth, kImageHeight, 1u }, // VkExtent3D extent; in MultipleSubpassesMultipleCommandBuffersTestInstance()
481 kImageWidth, // deUint32 width; in MultipleSubpassesMultipleCommandBuffersTestInstance()
500 kImageWidth, // deUint32 width; in MultipleSubpassesMultipleCommandBuffersTestInstance()
735 { kImageWidth, kImageHeight } // VkExtent2D extent; in createCommandBuffer()
DvktRenderPassUnusedClearAttachmentTests.cpp193 static constexpr deUint32 kImageWidth = 32; member in vkt::renderpass::__anon44526ea60111::UnusedClearAttachmentTestInstance
195 const tcu::UVec2 m_renderSize = { kImageWidth, kImageHeight };
466 { kImageWidth, kImageHeight, 1u }, // VkExtent3D extent; in UnusedClearAttachmentTestInstance()
486 { kImageWidth, kImageHeight, 1u }, // VkExtent3D extent; in UnusedClearAttachmentTestInstance()
719 kImageWidth, // deUint32 width; in UnusedClearAttachmentTestInstance()
863 { kImageWidth, kImageHeight } // VkExtent2D extent; in createCommandBuffer()
927 { kImageWidth, kImageHeight } // VkExtent2D extent; in createCommandBufferDynamicRendering()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassMultipleSubpassesMultipleCommandBuffersTests.cpp100 static constexpr deUint32 kImageWidth = 32; member in vkt::renderpass::__anonc08747bf0111::MultipleSubpassesMultipleCommandBuffersTestInstance
102 const tcu::UVec2 m_renderSize = { kImageWidth, kImageHeight };
289 { kImageWidth, kImageHeight, 1u }, // VkExtent3D extent; in MultipleSubpassesMultipleCommandBuffersTestInstance()
481 kImageWidth, // deUint32 width; in MultipleSubpassesMultipleCommandBuffersTestInstance()
500 kImageWidth, // deUint32 width; in MultipleSubpassesMultipleCommandBuffersTestInstance()
735 { kImageWidth, kImageHeight } // VkExtent2D extent; in createCommandBuffer()
DvktRenderPassUnusedClearAttachmentTests.cpp193 static constexpr deUint32 kImageWidth = 32; member in vkt::renderpass::__anon28cc50260111::UnusedClearAttachmentTestInstance
195 const tcu::UVec2 m_renderSize = { kImageWidth, kImageHeight };
466 { kImageWidth, kImageHeight, 1u }, // VkExtent3D extent; in UnusedClearAttachmentTestInstance()
486 { kImageWidth, kImageHeight, 1u }, // VkExtent3D extent; in UnusedClearAttachmentTestInstance()
719 kImageWidth, // deUint32 width; in UnusedClearAttachmentTestInstance()
863 { kImageWidth, kImageHeight } // VkExtent2D extent; in createCommandBuffer()
927 { kImageWidth, kImageHeight } // VkExtent2D extent; in createCommandBufferDynamicRendering()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DCopyTexImageTest.cpp516 const GLsizei kImageWidth = getWindowWidth(); member in angle::CopyTexImageTestES3
682 std::vector<GLColor> textureData(kImageWidth * kImageHeight * kImageDepth);
691 initialize3DTexture(texture3D, kImageWidth, kImageHeight, kImageDepth, textureData.data());
723 initialize3DTexture(texture3D, kImageWidth, kImageHeight, kImageDepth, nullptr);
770 initialize3DTexture(texture3D, kImageWidth, kImageHeight, kImageDepth, nullptr);
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DCopyTexImageTest.cpp603 const GLsizei kImageWidth = getWindowWidth(); member in angle::CopyTexImageTestES3
918 std::vector<GLColor> textureData(kImageWidth * kImageHeight * kImageDepth);
927 initialize3DTexture(texture3D, kImageWidth, kImageHeight, kImageDepth, textureData.data());
959 initialize3DTexture(texture3D, kImageWidth, kImageHeight, kImageDepth, nullptr);
1009 initialize3DTexture(texture3D, kImageWidth, kImageHeight, kImageDepth, nullptr);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
DvktMeshShaderQueryTestsEXT.cpp64 constexpr uint32_t kImageWidth = 32u; variable
424 << " const uint colCount = uint(" << kImageWidth << ");\n" in initPrograms()
845 const auto colorExtent = makeExtent3D(kImageWidth, std::max(imageHeight, 1u), 1u); in iterate()
850 const auto expectedPrims = (imageHeight * kImageWidth); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
DvktMeshShaderQueryTestsEXT.cpp64 constexpr uint32_t kImageWidth = 32u; variable
424 << " const uint colCount = uint(" << kImageWidth << ");\n" in initPrograms()
845 const auto colorExtent = makeExtent3D(kImageWidth, std::max(imageHeight, 1u), 1u); in iterate()
850 const auto expectedPrims = (imageHeight * kImageWidth); in iterate()