Home
last modified time | relevance | path

Searched refs:kWidth (Results 1 – 25 of 191) sorted by relevance

12345678

/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DCopyTests.cpp386 constexpr uint32_t kWidth = 256; in TEST_P() local
388 DoTest({ kWidth, kHeight, 0, 0, kWidth, kHeight, 0 }, MinimumBufferSpec(kWidth, kHeight)); in TEST_P()
393 constexpr uint32_t kWidth = 259; in TEST_P() local
395 DoTest({ kWidth, kHeight, 0, 0, kWidth, kHeight, 0 }, MinimumBufferSpec(kWidth, kHeight)); in TEST_P()
400 constexpr uint32_t kWidth = 256; 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()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DCopyTests.cpp586 constexpr uint32_t kWidth = 256; in TEST_P() local
590 textureSpec.textureSize = {kWidth, kHeight, 1}; in TEST_P()
592 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {kWidth, kHeight, 1}); in TEST_P()
597 constexpr uint32_t kWidth = 256; in TEST_P() local
601 textureSpec.textureSize = {kWidth, kHeight, 1}; in TEST_P()
603 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {0, kHeight, 1}); in TEST_P()
604 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {kWidth, 0, 1}); in TEST_P()
605 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {kWidth, kHeight, 0}); in TEST_P()
610 constexpr uint32_t kWidth = 259; in TEST_P() local
614 textureSpec.textureSize = {kWidth, kHeight, 1}; in TEST_P()
[all …]
DDepthStencilCopyTests.cpp190 constexpr uint32_t kWidth = 4; in TEST_P() local
194 kWidth, kHeight, wgpu::TextureUsage::RenderAttachment | wgpu::TextureUsage::CopySrc); in TEST_P()
205 EXPECT_TEXTURE_EQ(expectedData.data(), depthTexture, {0, 0}, {kWidth, kHeight}, 0, in TEST_P()
215 constexpr uint32_t kWidth = 4; in TEST_P() local
219 kWidth, kHeight, wgpu::TextureUsage::RenderAttachment | wgpu::TextureUsage::CopySrc); in TEST_P()
230 EXPECT_TEXTURE_EQ(expectedData.data(), depthStencilTexture, {0, 0}, {kWidth, kHeight}, 0, in TEST_P()
288 constexpr uint32_t kWidth = 4; in TEST_P() local
292 0.1f, 0.3f, 1u, 3u, kWidth, kHeight, in TEST_P()
302 EXPECT_TEXTURE_EQ(expectedData.data(), texture, {0, 0}, {kWidth, kHeight}, 0, in TEST_P()
312 constexpr uint32_t kWidth = 4; in TEST_P() local
[all …]
DQueueTests.cpp375 constexpr uint32_t kWidth = 259; in TEST_P() local
380 constexpr wgpu::Extent3D kTextureSize = {kWidth, kHeight, 1}; in TEST_P()
385 for (unsigned int w : {0u, kWidth / 7, kWidth / 3, kWidth - 1}) { in TEST_P()
396 constexpr uint32_t kWidth = 259; in TEST_P() local
402 constexpr wgpu::Extent3D kTextureSize = {kWidth, kHeight, kDepth}; in TEST_P()
407 for (unsigned int w : {0u, kWidth / 7, kWidth / 3, kWidth - 1}) { in TEST_P()
420 constexpr uint32_t kWidth = 257; in TEST_P() local
427 textureSpec.textureSize = {kWidth, kHeight, 1}; in TEST_P()
435 constexpr uint32_t kWidth = 257; in TEST_P() local
444 textureSpec.textureSize = {kWidth, kHeight, kDepth}; in TEST_P()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DDynamicStateCommandValidationTests.cpp30 utils::BasicRenderPass rp = utils::CreateBasicRenderPass(device, kWidth, kHeight); in TestViewportCall()
44 static constexpr uint32_t kWidth = 5; member in SetViewportTest
78 TestViewportCall(true, 0.0, 0.0, kWidth, kHeight, 0.0, 1.0); in TEST_F()
81 TestViewportCall(false, 0.0, 0.0, kWidth + 1.0, kHeight, 0.0, 1.0); in TEST_F()
82 TestViewportCall(false, 0.0, 0.0, nextafter(float(kWidth), 1000.0f), kHeight, 0.0, 1.0); in TEST_F()
85 TestViewportCall(false, 0.0, 0.0, kWidth, kHeight + 1.0, 0.0, 1.0); in TEST_F()
86 TestViewportCall(false, 0.0, 0.0, kWidth, nextafter(float(kHeight), 1000.0f), 0.0, 1.0); in TEST_F()
89 TestViewportCall(false, 2.0, 0.0, kWidth - 1.0, kHeight, 0.0, 1.0); in TEST_F()
90 TestViewportCall(false, 1.0, 0.0, nextafter(float(kWidth - 1.0), 1000.0f), kHeight, 0.0, 1.0); in TEST_F()
93 TestViewportCall(false, 0.0, 2.0, kWidth, kHeight - 1.0, 0.0, 1.0); in TEST_F()
[all …]
/third_party/skia/tests/
DDeviceTest.cpp42 static const int kWidth = 100;
45 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight);
50 bm.tryAllocN32Pixels(kWidth, kHeight);
55 SkASSERT(kWidth == special->width());
58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
64 SkASSERT(kWidth == special->width());
67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
72 SkASSERT(2*kWidth == special->width());
74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset());
82 static const int kWidth = 100; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
DShaderImageFilterTest.cpp16 static const int kWidth = 10; in test_unscaled() local
19 SkIRect ir = SkIRect::MakeWH(kWidth, kHeight); in test_unscaled()
23 filterResult.allocN32Pixels(kWidth, kHeight); in test_unscaled()
27 paintResult.allocN32Pixels(kWidth, kHeight); in test_unscaled()
57 for (int x = 0; x < kWidth; ++x, ++filterPtr, ++paintPtr) { in test_unscaled()
64 static const int kWidth = 10; in test_scaled() local
67 SkIRect ir = SkIRect::MakeWH(kWidth, kHeight); in test_scaled()
71 filterResult.allocN32Pixels(kWidth, kHeight); in test_scaled()
75 paintResult.allocN32Pixels(kWidth, kHeight); in test_scaled()
107 for (int x = 0; x < kWidth; ++x, ++filterPtr, ++paintPtr) { in test_scaled()
DRectangleTextureTest.cpp123 static const int kWidth = 16; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
126 uint32_t pixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
128 for (int x = 0; x < kWidth; ++x) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
129 pixels[y * kWidth + x] = y * kWidth + x; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
132 auto ii = SkImageInfo::Make(kWidth, kHeight, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
133 SkPixmap pm(ii, pixels, sizeof(uint32_t)*kWidth); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
138 GrBackendTexture rectangleTex = dContext->createBackendTexture(kWidth, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
151 GrColor refPixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
153 for (int x = 0; x < kWidth; ++x) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
154 refPixels[y * kWidth + x] = pixels[y * kWidth + x]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/flutter/skia/tests/
DDeviceTest.cpp42 static const int kWidth = 100;
45 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight);
50 bm.tryAllocN32Pixels(kWidth, kHeight);
55 SkASSERT(kWidth == special->width());
58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
64 SkASSERT(kWidth == special->width());
67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
72 SkASSERT(2*kWidth == special->width());
74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset());
82 static const int kWidth = 100; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
DGrUploadPixelsTests.cpp24 const int kWidth = 16; in basic_texture_test() local
26 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test()
27 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test()
29 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in basic_texture_test()
31 auto proxy = sk_gpu_test::MakeTextureProxyFromData(context, renderable, kWidth, kHeight, ct, in basic_texture_test()
39 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test()
45 kWidth, in basic_texture_test()
52 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
63 proxy = sk_gpu_test::MakeTextureProxyFromData(context, renderable, kWidth, kHeight, ct, in basic_texture_test()
71 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test()
[all …]
DPaintImageFilterTest.cpp16 static const int kWidth = 10; in test_unscaled() local
19 SkIRect ir = SkIRect::MakeWH(kWidth, kHeight); in test_unscaled()
23 filterResult.allocN32Pixels(kWidth, kHeight); in test_unscaled()
27 paintResult.allocN32Pixels(kWidth, kHeight); in test_unscaled()
56 for (int x = 0; x < kWidth; ++x, ++filterPtr, ++paintPtr) { in test_unscaled()
63 static const int kWidth = 10; in test_scaled() local
66 SkIRect ir = SkIRect::MakeWH(kWidth, kHeight); in test_scaled()
70 filterResult.allocN32Pixels(kWidth, kHeight); in test_scaled()
74 paintResult.allocN32Pixels(kWidth, kHeight); in test_scaled()
105 for (int x = 0; x < kWidth; ++x, ++filterPtr, ++paintPtr) { in test_scaled()
DPromiseImageTest.cpp164 const int kWidth = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
171 kWidth, kHeight, kRGBA_8888_SkColorType, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
182 ctx, backendFormat, kWidth, kHeight, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
192 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
240 const int kWidth = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
256 kWidth, kHeight, gray8Format, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
261 SkImageInfo::Make(kWidth, kHeight, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
268 ctx, alpha8Format, kWidth, kHeight, GrMipMapped::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
276 ctx, gray8Format, kWidth, kHeight, GrMipMapped::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
332 const int kWidth = 10; in DEF_GPUTEST() local
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DComputeShaderTest.cpp23 template <class T, GLint kWidth, GLint kHeight>
27 const std::array<T, kWidth * kHeight> &inputData, in runSharedMemoryTest()
28 const std::array<T, kWidth * kHeight> &expectedValues) in runSharedMemoryTest()
34 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, kWidth, kHeight); in runSharedMemoryTest()
35 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RED_INTEGER, format, in runSharedMemoryTest()
39 constexpr T initData[kWidth * kHeight] = {}; in runSharedMemoryTest()
41 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, kWidth, kHeight); in runSharedMemoryTest()
42 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RED_INTEGER, format, initData); in runSharedMemoryTest()
59 T outputValues[kWidth * kHeight] = {}; in runSharedMemoryTest()
66 glReadPixels(0, 0, kWidth, kHeight, GL_RED_INTEGER, format, outputValues); in runSharedMemoryTest()
[all …]
DBlitFramebufferANGLETest.cpp1444 constexpr const GLsizei kWidth = 256; in TEST_P() local
1449 initColorFBOWithCheckerPattern(&sourceFBO, &sourceRBO, GL_SRGB8_ALPHA8, kWidth * 2, in TEST_P()
1451 initColorFBO(&targetFBO, &targetRBO, GL_RGBA8, kWidth, kHeight); in TEST_P()
1458 glViewport(0, 0, kWidth, kHeight); in TEST_P()
1464 glBlitFramebuffer(0, 0, kWidth * 2, kHeight * 2, 0, 0, kWidth, kHeight, GL_COLOR_BUFFER_BIT, in TEST_P()
1471 EXPECT_PIXEL_COLOR_EQ(kWidth / 4, kHeight / 4, GLColor::red); in TEST_P()
1472 EXPECT_PIXEL_COLOR_EQ(3 * kWidth / 4, kHeight / 4, GLColor::green); in TEST_P()
1473 EXPECT_PIXEL_COLOR_EQ(3 * kWidth / 4, 3 * kHeight / 4, GLColor::red); in TEST_P()
1474 EXPECT_PIXEL_COLOR_EQ(kWidth / 4, 3 * kHeight / 4, GLColor::green); in TEST_P()
1483 glBlitFramebuffer(0, 0, kWidth * 2, kHeight * 2, kWidth, 0, 0, kHeight, GL_COLOR_BUFFER_BIT, in TEST_P()
[all …]
DMultisampleCompatibilityTest.cpp18 const GLint kWidth = 64; variable
68 glRenderbufferStorageMultisampleANGLE(GL_RENDERBUFFER, num_samples, GL_RGBA8_OES, kWidth, in prepareForDraw()
84 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in prepareForDraw()
97 glViewport(0, 0, kWidth, kHeight); in prepareForDraw()
112 glBlitFramebufferANGLE(0, 0, kWidth, kHeight, 0, 0, kWidth, kHeight, GL_COLOR_BUFFER_BIT, in prepareForVerify()
184 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P()
210 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P()
240 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P()
263 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P()
301 glRenderbufferStorageMultisampleANGLE(GL_RENDERBUFFER, numSamples, GL_RGBA8, kWidth, in prepareForDraw()
[all …]
DRobustResourceInitTest.cpp192 constexpr static int kWidth = 128; member in angle::RobustResourceInitTest
197 setWindowWidth(kWidth); in RobustResourceInitTest()
404 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in setupTexture()
411 std::array<uint8_t, kWidth * kHeight * 4> badData; in setupTexture()
417 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, in setupTexture()
430 glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, kWidth, kHeight, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, in setup3DTexture()
438 std::array<uint8_t, kWidth * kHeight * 2 * 4> badData; in setup3DTexture()
444 glTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 0, kWidth, kHeight, 2, GL_RGBA, GL_UNSIGNED_BYTE, in setup3DTexture()
492 checkCustomFramebufferNonZeroPixels(kWidth, kHeight, skipX, skipY, skipWidth, skipHeight, skip); in checkFramebufferNonZeroPixels()
533 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DComputeShaderTest.cpp33 template <class T, GLint kWidth, GLint kHeight>
37 const std::array<T, kWidth * kHeight> &inputData, in runSharedMemoryTest()
38 const std::array<T, kWidth * kHeight> &expectedValues) in runSharedMemoryTest()
44 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, kWidth, kHeight); in runSharedMemoryTest()
45 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RED_INTEGER, format, in runSharedMemoryTest()
49 constexpr T initData[kWidth * kHeight] = {}; in runSharedMemoryTest()
51 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, kWidth, kHeight); in runSharedMemoryTest()
52 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RED_INTEGER, format, initData); in runSharedMemoryTest()
69 T outputValues[kWidth * kHeight] = {}; in runSharedMemoryTest()
76 glReadPixels(0, 0, kWidth, kHeight, GL_RED_INTEGER, format, outputValues); in runSharedMemoryTest()
[all …]
DBlitFramebufferANGLETest.cpp1897 constexpr const GLsizei kWidth = 256; in TEST_P() local
1902 initColorFBOWithCheckerPattern(&sourceFBO, &sourceRBO, GL_SRGB8_ALPHA8, kWidth * 2, in TEST_P()
1904 initColorFBO(&targetFBO, &targetRBO, GL_RGBA8, kWidth, kHeight); in TEST_P()
1911 glViewport(0, 0, kWidth, kHeight); in TEST_P()
1917 glBlitFramebuffer(0, 0, kWidth * 2, kHeight * 2, 0, 0, kWidth, kHeight, GL_COLOR_BUFFER_BIT, in TEST_P()
1924 EXPECT_PIXEL_COLOR_EQ(kWidth / 4, kHeight / 4, GLColor::red); in TEST_P()
1925 EXPECT_PIXEL_COLOR_EQ(kWidth / 4, 3 * kHeight / 4, GLColor::green); in TEST_P()
1926 EXPECT_PIXEL_COLOR_EQ(3 * kWidth / 4, kHeight / 4, GLColor::blue); in TEST_P()
1927 EXPECT_PIXEL_COLOR_EQ(3 * kWidth / 4, 3 * kHeight / 4, GLColor::yellow); in TEST_P()
1936 glBlitFramebuffer(0, 0, kWidth * 2, kHeight * 2, kWidth, 0, 0, kHeight, GL_COLOR_BUFFER_BIT, in TEST_P()
[all …]
DMultisampleCompatibilityTest.cpp18 const GLint kWidth = 64; variable
68 glRenderbufferStorageMultisampleANGLE(GL_RENDERBUFFER, num_samples, GL_RGBA8_OES, kWidth, in prepareForDraw()
84 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in prepareForDraw()
97 glViewport(0, 0, kWidth, kHeight); in prepareForDraw()
112 glBlitFramebufferANGLE(0, 0, kWidth, kHeight, 0, 0, kWidth, kHeight, GL_COLOR_BUFFER_BIT, in prepareForVerify()
187 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P()
213 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P()
243 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P()
266 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P()
300 glRenderbufferStorageMultisampleANGLE(GL_RENDERBUFFER, numSamples, GL_RGBA8, kWidth, in prepareForDraw()
[all …]
DRobustResourceInitTest.cpp193 constexpr static int kWidth = 128; member in angle::RobustResourceInitTest
198 setWindowWidth(kWidth); in RobustResourceInitTest()
494 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in setupTexture()
501 std::array<uint8_t, kWidth * kHeight * 4> badData; in setupTexture()
507 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, in setupTexture()
520 glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, kWidth, kHeight, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, in setup3DTexture()
528 std::array<uint8_t, kWidth * kHeight * 2 * 4> badData; in setup3DTexture()
534 glTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 0, kWidth, kHeight, 2, GL_RGBA, GL_UNSIGNED_BYTE, in setup3DTexture()
582 checkCustomFramebufferNonZeroPixels(kWidth, kHeight, skipX, skipY, skipWidth, skipHeight, skip); in checkFramebufferNonZeroPixels()
623 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
[all …]
DVulkanImageTest.cpp18 constexpr GLuint kWidth = 64u; variable
108 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
126 EXPECT_EQ(info.extent.width, kWidth); in TEST_P()
155 std::vector<GLuint> pixels(kWidth * kHeight, kColor); in TEST_P()
156 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
178 std::vector<GLuint> pixels(kWidth * kHeight); in TEST_P()
181 EXPECT_EQ(pixels, std::vector<GLuint>(kWidth * kHeight, kColor)); in TEST_P()
203 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
222 glViewport(0, 0, kWidth, kHeight); in TEST_P()
232 std::vector<GLuint> pixels(kWidth * kHeight); in TEST_P()
[all …]
DMultiDrawTest.cpp20 constexpr uint32_t kWidth = 256; variable
30 constexpr std::array<uint32_t, 2> kTilePixelSize = {kWidth / kCountX, kHeight / kCountY};
33 static_cast<uint32_t>(kQuadRadius[0] * kWidth),
147 setWindowWidth(kWidth); in MultiDrawTest()
385 EXPECT_PIXEL_RECT_EQ(center_x / 2 - kPixelCheckSize[0] / 4 + kWidth / 2, in CheckDrawResult()
391 EXPECT_PIXEL_RECT_EQ(center_x / 2 - kPixelCheckSize[0] / 4 + kWidth / 2, in CheckDrawResult()
487 setWindowWidth(kWidth); in MultiDrawIndirectTest()
655 EXPECT_PIXEL_COLOR_EQ(kWidth - 1, 0, GLColor::magenta); in TEST_P()
656 EXPECT_PIXEL_COLOR_EQ(kWidth - 1, kHeight - 1, GLColor::magenta); in TEST_P()
657 EXPECT_PIXEL_COLOR_EQ(kWidth / 2, kHeight / 2, GLColor::transparentBlack); in TEST_P()
[all …]
/third_party/skia/gm/
Dstlouisarch.cpp26 SkISize onISize() override { return SkISize::Make((int)kWidth, (int)kHeight); } in onISize()
32 bigQuad->quadTo(kWidth/2, kHeight, kWidth, 0); in onOnceBeforeDraw()
39 degenBigQuad->quadTo(0, yPos, kWidth, yPos); in onOnceBeforeDraw()
47 kWidth, kHeight, in onOnceBeforeDraw()
48 kWidth, 0); in onOnceBeforeDraw()
57 kWidth, yPos); in onOnceBeforeDraw()
63 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw()
70 degenBigConic->conicTo(0, yPos, kWidth, yPos, .5); in onOnceBeforeDraw()
89 const SkScalar kWidth = 256; member in skiagm::StLouisArchGM
/third_party/flutter/skia/gm/
Dstlouisarch.cpp26 SkISize onISize() override { return SkISize::Make((int)kWidth, (int)kHeight); } in onISize()
32 bigQuad->quadTo(kWidth/2, kHeight, kWidth, 0); in onOnceBeforeDraw()
39 degenBigQuad->quadTo(0, yPos, kWidth, yPos); in onOnceBeforeDraw()
47 kWidth, kHeight, in onOnceBeforeDraw()
48 kWidth, 0); in onOnceBeforeDraw()
57 kWidth, yPos); in onOnceBeforeDraw()
63 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw()
70 degenBigConic->conicTo(0, yPos, kWidth, yPos, .5); in onOnceBeforeDraw()
89 const SkScalar kWidth = 256; member in skiagm::StLouisArchGM
Drectangletexture.cpp142 constexpr int kWidth = 50; in onDraw() local
146 SkPMColor pixels[kWidth * kHeight]; in onDraw()
147 this->fillPixels(kWidth, kHeight, pixels); in onDraw()
150 this->createRectangleTextureImg(context, kTopLeft_GrSurfaceOrigin, kWidth, kHeight, in onDraw()
152 this->createRectangleTextureImg(context, kBottomLeft_GrSurfaceOrigin, kWidth, in onDraw()
180 canvas->translate(kWidth + kPad, 0); in onDraw()
186 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), clampPaint); in onDraw()
187 canvas->translate(kWidth * 1.5f + kPad, 0); in onDraw()
194 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), repeatPaint); in onDraw()
195 canvas->translate(1.5f * kWidth + kPad, 0); in onDraw()
[all …]

12345678