Home
last modified time | relevance | path

Searched refs:kHeight (Results 1 - 25 of 112) sorted by relevance

12345

/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DCopyTests.cpp587 constexpr uint32_t kHeight = 128; in GetExpectedTextureData() local
590 textureSpec.textureSize = {kWidth, kHeight, 1}; in GetExpectedTextureData()
592 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {kWidth, kHeight, 1}); in GetExpectedTextureData()
598 constexpr uint32_t kHeight = 128; in GetExpectedTextureData() local
601 textureSpec.textureSize = {kWidth, kHeight, 1}; in GetExpectedTextureData()
603 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {0, kHeight, 1}); in GetExpectedTextureData()
604 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {kWidth, 0, 1}); in GetExpectedTextureData()
605 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {kWidt in GetExpectedTextureData()
611 constexpr uint32_t kHeight = 127; GetExpectedTextureData() local
622 constexpr uint32_t kHeight = 128; GetExpectedTextureData() local
669 constexpr uint32_t kHeight = 127; GetExpectedTextureData() local
716 constexpr uint32_t kHeight = 128; GetExpectedTextureData() local
729 constexpr uint32_t kHeight = 128; GetExpectedTextureData() local
745 constexpr uint32_t kHeight = 128; GetExpectedTextureData() local
764 constexpr uint32_t kHeight = 2; GetExpectedTextureData() local
783 constexpr uint32_t kHeight = 127; GetExpectedTextureData() local
800 constexpr uint32_t kHeight = 128; GetExpectedTextureData() local
817 constexpr uint32_t kHeight = 128; GetExpectedTextureData() local
835 constexpr uint32_t kHeight = 128; GetExpectedTextureData() local
852 constexpr uint32_t kHeight = 128; GetExpectedTextureData() local
869 constexpr uint32_t kHeight = 127; GetExpectedTextureData() local
886 constexpr uint32_t kHeight = 127; GetExpectedTextureData() local
937 constexpr uint32_t kHeight = 3; TEST_P() local
1022 constexpr uint32_t kHeight = 128; TEST_P() local
1034 constexpr uint32_t kHeight = 128; TEST_P() local
1050 constexpr uint32_t kHeight = 128; TEST_P() local
1070 constexpr uint32_t kHeight = 128; TEST_P() local
1090 constexpr uint32_t kHeight = 128; TEST_P() local
1112 constexpr uint32_t kHeight = 128; TEST_P() local
1133 constexpr uint32_t kHeight = 128; TEST_P() local
1148 constexpr uint32_t kHeight = 128; TEST_P() local
1163 constexpr uint32_t kHeight = 4; TEST_P() local
1184 constexpr uint32_t kHeight = 127; TEST_P() local
1200 constexpr uint32_t kHeight = 4; TEST_P() local
1221 constexpr uint32_t kHeight = 1; TEST_P() local
1242 constexpr uint32_t kHeight = 1; TEST_P() local
1266 constexpr uint32_t kHeight = 128; TEST_P() local
1285 constexpr uint32_t kHeight = 123; TEST_P() local
1311 constexpr uint32_t kHeight = 128; TEST_P() local
1322 constexpr uint32_t kHeight = 128; TEST_P() local
1335 constexpr uint32_t kHeight = 127; TEST_P() local
1346 constexpr uint32_t kHeight = 128; TEST_P() local
1393 constexpr uint32_t kHeight = 127; TEST_P() local
1440 constexpr uint32_t kHeight = 128; TEST_P() local
1453 constexpr uint32_t kHeight = 128; TEST_P() local
1469 constexpr uint32_t kHeight = 128; TEST_P() local
1486 constexpr uint32_t kHeight = 127; TEST_P() local
1503 constexpr uint32_t kHeight = 128; TEST_P() local
1520 constexpr uint32_t kHeight = 128; TEST_P() local
1538 constexpr uint32_t kHeight = 128; TEST_P() local
1555 constexpr uint32_t kHeight = 128; TEST_P() local
1572 constexpr uint32_t kHeight = 127; TEST_P() local
1589 constexpr uint32_t kHeight = 127; TEST_P() local
1636 constexpr uint32_t kHeight = 128; TEST_P() local
1648 constexpr uint32_t kHeight = 128; TEST_P() local
1665 constexpr uint32_t kHeight = 128; TEST_P() local
1685 constexpr uint32_t kHeight = 128; TEST_P() local
1707 constexpr uint32_t kHeight = 128; TEST_P() local
1728 constexpr uint32_t kHeight = 128; TEST_P() local
1743 constexpr uint32_t kHeight = 128; TEST_P() local
1758 constexpr uint32_t kHeight = 4; TEST_P() local
1779 constexpr uint32_t kHeight = 127; TEST_P() local
1795 constexpr uint32_t kHeight = 4; TEST_P() local
1816 constexpr uint32_t kHeight = 1; TEST_P() local
1837 constexpr uint32_t kHeight = 1; TEST_P() local
1861 constexpr uint32_t kHeight = 128; TEST_P() local
1880 constexpr uint32_t kHeight = 123; TEST_P() local
1905 constexpr uint32_t kHeight = 128; TEST_P() local
1915 constexpr uint32_t kHeight = 128; TEST_P() local
1926 constexpr uint32_t kHeight = 128; TEST_P() local
1941 constexpr uint32_t kHeight = 128; TEST_P() local
1957 constexpr uint32_t kHeight = 128; TEST_P() local
1976 constexpr uint32_t kHeight = 128; TEST_P() local
1996 constexpr uint32_t kHeight = 128; TEST_P() local
2015 constexpr uint32_t kHeight = 128; TEST_P() local
2027 constexpr uint32_t kHeight = 128; TEST_P() local
2044 constexpr uint32_t kHeight = 128; TEST_P() local
2065 constexpr uint32_t kHeight = 128; TEST_P() local
2086 constexpr uint32_t kHeight = 128u; TEST_P() local
2108 constexpr uint32_t kHeight = 128u; TEST_P() local
2188 constexpr uint32_t kHeight = 128; TEST_P() local
2208 constexpr uint32_t kHeight = 128; TEST_P() local
2220 constexpr uint32_t kHeight = 128; TEST_P() local
2237 constexpr uint32_t kHeight = 128; TEST_P() local
2255 constexpr uint32_t kHeight = 4; TEST_P() local
2313 constexpr uint32_t kHeight = 128; TEST_P() local
2327 constexpr uint32_t kHeight = 128; TEST_P() local
2340 constexpr uint32_t kHeight = 128; TEST_P() local
2357 constexpr uint32_t kHeight = 128; TEST_P() local
2370 constexpr uint32_t kHeight = 128; TEST_P() local
2389 constexpr uint32_t kHeight = 123; TEST_P() local
[all...]
H A 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 in TEST_P() local
358 constexpr uint32_t kHeight = 4; TEST_P() local
395 constexpr uint32_t kHeight = 4; TEST_P() local
436 constexpr uint32_t kHeight = 4; TEST_P() local
475 constexpr uint32_t kHeight = 4; TEST_P() local
[all...]
H A 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 in TEST_P()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A 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 in TEST_F()
158 static constexpr uint32_t kHeight = 3; global() member in SetScissorTest
[all...]
/third_party/skia/tests/
H A 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 in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all...]
H A 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; in test_scaled()
[all...]
H A DPromiseImageTest.cpp130 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
135 kWidth, kHeight, kRGBA_8888_SkColorType, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
146 {kWidth, kHeight}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
156 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
200 const int kHeight = 10; in DEF_GPUTEST() local
236 kHeight, in DEF_GPUTEST()
245 SkImageInfo info = SkImageInfo::Make(kWidth, kHeight, kRGBA_8888_SkColorType, in DEF_GPUTEST()
253 {kWidth, kHeight}, in DEF_GPUTEST()
280 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
285 kWidth, kHeight, kAlpha_8_SkColorTyp in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
351 const int kHeight = 10; DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all...]
H A DGpuRectanizerTest.cpp16 static const int kHeight = 1024; variable
21 REPORTER_ASSERT(reporter, kHeight == rectanizer->height()); in test_rectanizer_basic()
46 GrRectanizerSkyline skylineRectanizer(kWidth, kHeight); in test_skyline()
53 GrRectanizerPow2 pow2Rectanizer(kWidth, kHeight); in test_pow2()
65 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A 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_INTEGE in runSharedMemoryTest()
720 const int kWidth = 4, kHeight = 6; TEST_P() local
770 constexpr GLsizei kWidth = 4, kHeight = 6; TEST_P() local
1125 constexpr unsigned int kHeight = 12; TEST_P() local
1197 constexpr unsigned int kHeight = 16; TEST_P() local
1264 constexpr int kWidth = 1, kHeight = 1; TEST_P() local
1330 constexpr int kWidth = 1, kHeight = 1; TEST_P() local
1390 constexpr int kWidth = 1, kHeight = 1; TEST_P() local
1451 constexpr int kWidth = 1, kHeight = 1, kDepth = 2; TEST_P() local
1519 constexpr int kWidth = 1, kHeight = 1, kDepth = 2; TEST_P() local
1588 constexpr int kWidth = 1, kHeight = 1, kDepth = 2; TEST_P() local
1658 constexpr int kWidth = 1, kHeight = 1; TEST_P() local
1730 constexpr int kWidth = 1, kHeight = 1, kDepth = 2; TEST_P() local
1801 constexpr int kWidth = 1, kHeight = 1, kDepth = 2; TEST_P() local
1872 constexpr int kWidth = 1, kHeight = 1; TEST_P() local
1966 constexpr int kWidth = 1, kHeight = 1, kDepth = 2; TEST_P() local
2130 constexpr int kWidth = 2, kHeight = 2; TEST_P() local
2652 constexpr int kWidth = 1, kHeight = 1; TEST_P() local
3202 constexpr int kWidth = 1, kHeight = 1; TEST_P() local
3281 constexpr unsigned int kHeight = 16; TEST_P() local
4455 constexpr int kWidth = 1, kHeight = 1, kDepth = 2; TEST_P() local
4506 constexpr int kWidth = 1, kHeight = 1, kDepth = 2; TEST_P() local
[all...]
H A 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 / in TEST_P()
2110 constexpr const GLsizei kHeight = 256; TEST_P() local
2166 constexpr const GLsizei kHeight = 256; TEST_P() local
2211 constexpr const GLsizei kHeight = 256; TEST_P() local
2673 constexpr const GLsizei kHeight = 256; TEST_P() local
[all...]
H A DMultiDrawTest.cpp18 // Create a kWidth * kHeight canvas equally split into kCountX * kCountY tiles
21 constexpr uint32_t kHeight = 256; member
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 in TEST_P()
[all...]
H A DMultisampleCompatibilityTest.cpp19 const GLint kHeight = 64; member
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_RGB in TEST_P()
[all...]
H A 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, in TEST_P()
[all...]
H A DVulkanImageTest.cpp19 constexpr GLuint kHeight = 64u; member
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...]
H A DFramebufferMixedSamplesTest.cpp19 const GLuint kHeight = 100; member
74 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in prepareForDraw()
88 kWidth, kHeight); in prepareForDraw()
95 glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, kWidth, kHeight); in prepareForDraw()
109 glViewport(0, 0, kWidth, kHeight); in prepareForDraw()
193 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()
238 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P()
258 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P()
H A DSamplersTest.cpp97 constexpr int kHeight = 2; in TEST_P() local
119 std::array<GLColor, kWidth *kHeight> redColor = { in TEST_P()
121 std::array<GLColor, kWidth *kHeight> greenColor = { in TEST_P()
128 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
137 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
175 EXPECT_PIXEL_RECT_EQ(0, 0, kWidth, kHeight, GLColor::yellow); in TEST_P()
/third_party/skia/gm/
H A Dstlouisarch.cpp26 SkISize onISize() override { return SkISize::Make((int)kWidth, (int)kHeight); }
32 bigQuad->quadTo(kWidth/2, kHeight, kWidth, 0);
37 SkScalar yPos = kHeight / 2 + 10;
46 bigCubic->cubicTo(0, kHeight,
47 kWidth, kHeight,
53 SkScalar yPos = kHeight / 2;
63 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5);
68 SkScalar yPos = kHeight / 2 - 10;
77 canvas->translate(0, -kHeight);
90 const SkScalar kHeight member in skiagm::StLouisArchGM
[all...]
H A Dstringart.cpp23 constexpr int kHeight = 440; variable
41 return SkISize::Make(kWidth, kHeight);
46 SkScalar size = SkIntToScalar(std::min(kWidth, kHeight));
47 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight));
101 kHeight = 600, enumerator
125 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); }
134 SkScalar y = rand.nextF() * kHeight; in init()
H A 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 }, lightPo in draw_paths()
264 static constexpr SkScalar kHeight = 12.f; DEF_SIMPLE_GM() local
[all...]
H A Dlabyrinth.cpp86 constexpr static int kHeight = 420; variable
88 DEF_SIMPLE_GM(labyrinth_square, canvas, kWidth, kHeight) { in DEF_SIMPLE_GM()
92 DEF_SIMPLE_GM(labyrinth_round, canvas, kWidth, kHeight) { in DEF_SIMPLE_GM()
96 DEF_SIMPLE_GM(labyrinth_butt, canvas, kWidth, kHeight) { in DEF_SIMPLE_GM()
/third_party/skia/samplecode/
H A 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));
117 100.0f * totArea / ((float)kWidth*kHeight),
120 canvas->drawString(str, 50, kHeight + 50, blackBigFont, SkPaint());
123 canvas->drawString(str, 50, kHeight + 100, blackBigFont, SkPaint());
126 canvas->drawString(str, 50, kHeight + 150, blackBigFont, SkPaint());
131 static const int kHeight = 1024; member in RectanizerView
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
H A DEGLProtectedContentTest.cpp97 kHeight, in createPbufferSurface()
108 kHeight, in createPbufferSurface()
161 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in createTexture()
174 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, kWidth, kHeight); in createTexture()
213 glViewport(0, 0, kWidth, kHeight); in createTextureFromPbuffer()
220 GLuint pixels[kWidth * kHeight]; in fillTexture()
221 for (uint32_t i = 0; i < (kWidth * kHeight); i++) in fillTexture()
226 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, in fillTexture()
274 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA, kWidth, kHeight); in createRenderbuffer()
308 kHeight, in createAndroidClientBuffer()
367 static const EGLint kHeight = 16; global() member in EGLProtectedContentTest
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
H A DvktDynamicStateInheritanceTests.cpp53 static const deInt32 kWidth = 256, kHeight = 128; member
125 Texel deviceResult[kHeight][kWidth];
126 Texel expectedResult[kHeight][kWidth];
178 float m_cpuDepthBuffer[kHeight][kWidth];
186 void rasterizeExpectedResults(const TestGeometry& geometry, Texel (&output)[kHeight][kWidth]);
330 kWidth * kHeight * sizeof(Texel),
337 { kWidth, kHeight, 1 },
350 { kWidth, kHeight, 1 }, in makeDepthImageInfo()
463 kWidth, kHeight, 1 }; in createImageView() local
741 { { 0, 0 }, { kWidth, kHeight } }, in startRenderCmds()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/
H A DvktDynamicStateInheritanceTests.cpp51 static const deInt32 kWidth = 256, kHeight = 128; member
123 Texel deviceResult[kHeight][kWidth];
124 Texel expectedResult[kHeight][kWidth];
175 float m_cpuDepthBuffer[kHeight][kWidth];
183 void rasterizeExpectedResults(const TestGeometry& geometry, Texel (&output)[kHeight][kWidth]);
327 kWidth * kHeight * sizeof(Texel),
334 { kWidth, kHeight, 1 },
347 { kWidth, kHeight, 1 }, in makeDepthImageInfo()
459 kWidth, kHeight, 1 }; in createImageView() local
686 { { 0, 0 }, { kWidth, kHeight } }, in startRenderCmds()
[all...]
/third_party/skia/bench/
H A DRectanizerBench.cpp31 inline static constexpr int kHeight = 1024; member in RectanizerBench
79 fRectanizer = std::make_unique<GrRectanizerPow2>(kWidth, kHeight);
82 fRectanizer = std::make_unique<GrRectanizerSkyline>(kWidth, kHeight);
94 rand.nextRangeU(1, kHeight / 2));
97 GrNextPow2(rand.nextRangeU(1, kHeight / 2)));

Completed in 21 milliseconds

12345