Home
last modified time | relevance | path

Searched refs:kHeight (Results 1 – 25 of 181) sorted by relevance

12345678

/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DCopyTests.cpp387 constexpr uint32_t kHeight = 128; in TEST_P() local
388 DoTest({ kWidth, kHeight, 0, 0, kWidth, kHeight, 0 }, MinimumBufferSpec(kWidth, kHeight)); in TEST_P()
394 constexpr uint32_t kHeight = 127; in TEST_P() local
395 DoTest({ kWidth, kHeight, 0, 0, kWidth, kHeight, 0 }, MinimumBufferSpec(kWidth, kHeight)); in TEST_P()
401 constexpr uint32_t kHeight = 128; 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.cpp587 constexpr uint32_t kHeight = 128; 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()
598 constexpr uint32_t kHeight = 128; 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()
611 constexpr uint32_t kHeight = 127; in TEST_P() local
614 textureSpec.textureSize = {kWidth, kHeight, 1}; in TEST_P()
[all …]
DDepthStencilCopyTests.cpp191 constexpr uint32_t kHeight = 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()
216 constexpr uint32_t kHeight = 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()
289 constexpr uint32_t kHeight = 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()
313 constexpr uint32_t kHeight = 4; in TEST_P() local
[all …]
DQueueTests.cpp376 constexpr uint32_t kHeight = 127; in TEST_P() local
380 constexpr wgpu::Extent3D kTextureSize = {kWidth, kHeight, 1}; in TEST_P()
386 for (unsigned int h : {0u, kHeight / 7, kHeight / 3, kHeight - 1}) { in TEST_P()
397 constexpr uint32_t kHeight = 127; in TEST_P() local
402 constexpr wgpu::Extent3D kTextureSize = {kWidth, kHeight, kDepth}; in TEST_P()
408 for (unsigned int h : {0u, kHeight / 7, kHeight / 3, kHeight - 1}) { in TEST_P()
421 constexpr uint32_t kHeight = 127; in TEST_P() local
427 textureSpec.textureSize = {kWidth, kHeight, 1}; in TEST_P()
436 constexpr uint32_t kHeight = 127; in TEST_P() local
444 textureSpec.textureSize = {kWidth, kHeight, kDepth}; in TEST_P()
[all …]
DViewportTests.cpp49 static constexpr uint32_t kHeight = 6; member in ViewportTest
66 utils::BasicRenderPass rp = utils::CreateBasicRenderPass(device, kWidth, kHeight); in TestViewportQuad()
81 for (uint32_t checkY = 0; checkY < kHeight; checkY++) { in TestViewportQuad()
146 TestViewportQuad(0, 0, kWidth, kHeight, false); in TEST_P()
151 TestViewportQuad(0, 0, kWidth - 1, kHeight); in TEST_P()
152 TestViewportQuad(1, 0, kWidth - 1, kHeight); in TEST_P()
153 TestViewportQuad(2, 0, 1, kHeight); in TEST_P()
158 TestViewportQuad(0, 0, kWidth, kHeight - 1); in TEST_P()
159 TestViewportQuad(0, 1, kWidth, kHeight - 1); in TEST_P()
165 TestViewportQuad(1, 1, kWidth - 2, kHeight - 2); in TEST_P()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DDynamicStateCommandValidationTests.cpp30 utils::BasicRenderPass rp = utils::CreateBasicRenderPass(device, kWidth, kHeight); in TestViewportCall()
45 static constexpr uint32_t kHeight = 3; 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/flutter/skia/tests/
DDeviceTest.cpp43 static const int kHeight = 90;
45 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight);
50 bm.tryAllocN32Pixels(kWidth, kHeight);
56 SkASSERT(kHeight == special->height());
58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
65 SkASSERT(kHeight == special->height());
67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
73 SkASSERT(2*kHeight == special->height());
74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset());
83 static const int kHeight = 90; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
DGrUploadPixelsTests.cpp25 const int kHeight = 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()
46 kHeight)); 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.cpp17 static const int kHeight = 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()
53 for (int y = 0; y < kHeight; ++y) { in test_unscaled()
64 static const int kHeight = 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()
102 for (int y = 0; y < kHeight; ++y) { in test_scaled()
DPromiseImageTest.cpp165 const int kHeight = 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()
241 const int kHeight = 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()
333 const int kHeight = 10; in DEF_GPUTEST() local
[all …]
/third_party/skia/tests/
DDeviceTest.cpp43 static const int kHeight = 90;
45 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight);
50 bm.tryAllocN32Pixels(kWidth, kHeight);
56 SkASSERT(kHeight == special->height());
58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
65 SkASSERT(kHeight == special->height());
67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
73 SkASSERT(2*kHeight == special->height());
74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset());
83 static const int kHeight = 90; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
DShaderImageFilterTest.cpp17 static const int kHeight = 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()
54 for (int y = 0; y < kHeight; ++y) { in test_unscaled()
65 static const int kHeight = 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()
104 for (int y = 0; y < kHeight; ++y) { in test_scaled()
/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.cpp1445 constexpr const GLsizei kHeight = 256; in TEST_P() local
1450 kHeight * 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.cpp19 const GLint kHeight = 64; variable
69 kHeight); 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()
302 kHeight); in prepareForDraw()
[all …]
/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()
37 SkScalar yPos = kHeight / 2 + 10; in onOnceBeforeDraw()
46 bigCubic->cubicTo(0, kHeight, in onOnceBeforeDraw()
47 kWidth, kHeight, in onOnceBeforeDraw()
53 SkScalar yPos = kHeight / 2; in onOnceBeforeDraw()
63 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw()
68 SkScalar yPos = kHeight / 2 - 10; in onOnceBeforeDraw()
77 canvas->translate(0, -kHeight); in onDraw()
90 const SkScalar kHeight = 256; member in skiagm::StLouisArchGM
/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()
37 SkScalar yPos = kHeight / 2 + 10; in onOnceBeforeDraw()
46 bigCubic->cubicTo(0, kHeight, in onOnceBeforeDraw()
47 kWidth, kHeight, in onOnceBeforeDraw()
53 SkScalar yPos = kHeight / 2; in onOnceBeforeDraw()
63 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw()
68 SkScalar yPos = kHeight / 2 - 10; in onOnceBeforeDraw()
77 canvas->translate(0, -kHeight); in onDraw()
90 const SkScalar kHeight = 256; member in skiagm::StLouisArchGM
Dshadowutils.cpp82 static constexpr SkScalar kHeight = 50.f; in draw_paths() local
101 SkScalar w = postMBounds.width() + kHeight; in draw_paths()
120 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths()
122 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths()
127 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{0, 0, kHeight}, lightPos, in draw_paths()
157 dy = std::max(dy, postMBounds.height() + kPad + kHeight); in draw_paths()
174 SkScalar w = postMBounds.width() + kHeight; in draw_paths()
181 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths()
183 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths()
188 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{ 0, 0, kHeight }, lightPos, in draw_paths()
[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.cpp1898 constexpr const GLsizei kHeight = 256; in TEST_P() local
1903 kHeight * 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.cpp19 const GLint kHeight = 64; variable
69 kHeight); 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()
301 kHeight); in prepareForDraw()
[all …]
DVulkanImageTest.cpp19 constexpr GLuint kHeight = 64u; variable
108 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
127 EXPECT_EQ(info.extent.height, kHeight); 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.cpp21 constexpr uint32_t kHeight = 256; variable
30 constexpr std::array<uint32_t, 2> kTilePixelSize = {kWidth / kCountX, kHeight / kCountY};
34 static_cast<uint32_t>(kQuadRadius[1] * kHeight)};
148 setWindowHeight(kHeight); in MultiDrawTest()
389 center_y / 2 - kPixelCheckSize[1] / 4 + kHeight / 2, in CheckDrawResult()
392 center_y / 2 - kPixelCheckSize[1] / 4 + kHeight / 2, in CheckDrawResult()
488 setWindowHeight(kHeight); in MultiDrawIndirectTest()
654 EXPECT_PIXEL_COLOR_EQ(0, kHeight - 1, 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 …]
DRobustResourceInitTest.cpp194 constexpr static int kHeight = 128; member in angle::RobustResourceInitTest
199 setWindowHeight(kHeight); 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 …]
/third_party/flutter/skia/samplecode/
DSampleRectanizer.cpp51 std::unique_ptr<GrRectanizer>(new GrRectanizerPow2(kWidth, kHeight))); in RectanizerView()
53 std::unique_ptr<GrRectanizer>(new GrRectanizerSkyline(kWidth, kHeight))); in RectanizerView()
94 SkRect r = SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in onDrawContent()
117 100.0f * totArea / ((float)kWidth*kHeight), in onDrawContent()
120 canvas->drawString(str, 50, kHeight + 50, blackBigFont, SkPaint()); in onDrawContent()
123 canvas->drawString(str, 50, kHeight + 100, blackBigFont, SkPaint()); in onDrawContent()
126 canvas->drawString(str, 50, kHeight + 150, blackBigFont, SkPaint()); in onDrawContent()
131 static const int kHeight = 1024; member in RectanizerView

12345678