Home
last modified time | relevance | path

Searched refs:kWidth (Results 1 - 25 of 122) sorted by relevance

12345

/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DCopyTests.cpp586 constexpr uint32_t kWidth = 256; in GetExpectedTextureData() local
590 textureSpec.textureSize = {kWidth, kHeight, 1}; in GetExpectedTextureData()
592 DoTest(textureSpec, MinimumBufferSpec(kWidth, kHeight), {kWidth, kHeight, 1}); in GetExpectedTextureData()
597 constexpr uint32_t kWidth = 256; 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, kHeigh in GetExpectedTextureData()
610 constexpr uint32_t kWidth = 259; GetExpectedTextureData() local
621 constexpr uint32_t kWidth = 256; GetExpectedTextureData() local
668 constexpr uint32_t kWidth = 259; GetExpectedTextureData() local
715 constexpr uint32_t kWidth = 256; GetExpectedTextureData() local
728 constexpr uint32_t kWidth = 256; GetExpectedTextureData() local
744 constexpr uint32_t kWidth = 256; GetExpectedTextureData() local
763 constexpr uint32_t kWidth = 256 << mipLevelCount; GetExpectedTextureData() local
782 constexpr uint32_t kWidth = 259; GetExpectedTextureData() local
799 constexpr uint32_t kWidth = 256; GetExpectedTextureData() local
816 constexpr uint32_t kWidth = 128; GetExpectedTextureData() local
834 constexpr uint32_t kWidth = 32; GetExpectedTextureData() local
851 constexpr uint32_t kWidth = 256; GetExpectedTextureData() local
868 constexpr uint32_t kWidth = 259; GetExpectedTextureData() local
885 constexpr uint32_t kWidth = 259; GetExpectedTextureData() local
936 constexpr uint32_t kWidth = 250; TEST_P() local
957 constexpr uint32_t kWidth = 250; TEST_P() local
1021 constexpr uint32_t kWidth = 256; TEST_P() local
1033 constexpr uint32_t kWidth = 256; TEST_P() local
1049 constexpr uint32_t kWidth = 256; TEST_P() local
1069 constexpr uint32_t kWidth = 256; TEST_P() local
1089 constexpr uint32_t kWidth = 64; TEST_P() local
1111 constexpr uint32_t kWidth = 64; TEST_P() local
1132 constexpr uint32_t kWidth = 256; TEST_P() local
1147 constexpr uint32_t kWidth = 256; TEST_P() local
1162 constexpr uint32_t kWidth = 2; TEST_P() local
1183 constexpr uint32_t kWidth = 259; TEST_P() local
1199 constexpr uint32_t kWidth = 39; TEST_P() local
1220 constexpr uint32_t kWidth = 2; TEST_P() local
1241 constexpr uint32_t kWidth = 39; TEST_P() local
1265 constexpr uint32_t kWidth = 256; TEST_P() local
1284 constexpr uint32_t kWidth = 261; TEST_P() local
1310 constexpr uint32_t kWidth = 256; TEST_P() local
1321 constexpr uint32_t kWidth = 256; TEST_P() local
1334 constexpr uint32_t kWidth = 259; TEST_P() local
1345 constexpr uint32_t kWidth = 256; TEST_P() local
1392 constexpr uint32_t kWidth = 259; TEST_P() local
1439 constexpr uint32_t kWidth = 256; TEST_P() local
1452 constexpr uint32_t kWidth = 256; TEST_P() local
1468 constexpr uint32_t kWidth = 256; TEST_P() local
1485 constexpr uint32_t kWidth = 259; TEST_P() local
1502 constexpr uint32_t kWidth = 256; TEST_P() local
1519 constexpr uint32_t kWidth = 256; TEST_P() local
1537 constexpr uint32_t kWidth = 32; TEST_P() local
1554 constexpr uint32_t kWidth = 256; TEST_P() local
1571 constexpr uint32_t kWidth = 259; TEST_P() local
1588 constexpr uint32_t kWidth = 259; TEST_P() local
1635 constexpr uint32_t kWidth = 256; TEST_P() local
1647 constexpr uint32_t kWidth = 256; TEST_P() local
1664 constexpr uint32_t kWidth = 256; TEST_P() local
1684 constexpr uint32_t kWidth = 64; TEST_P() local
1706 constexpr uint32_t kWidth = 64; TEST_P() local
1727 constexpr uint32_t kWidth = 256; TEST_P() local
1742 constexpr uint32_t kWidth = 256; TEST_P() local
1757 constexpr uint32_t kWidth = 2; TEST_P() local
1778 constexpr uint32_t kWidth = 259; TEST_P() local
1794 constexpr uint32_t kWidth = 39; TEST_P() local
1815 constexpr uint32_t kWidth = 2; TEST_P() local
1836 constexpr uint32_t kWidth = 39; TEST_P() local
1860 constexpr uint32_t kWidth = 256; TEST_P() local
1879 constexpr uint32_t kWidth = 261; TEST_P() local
1904 constexpr uint32_t kWidth = 256; TEST_P() local
1914 constexpr uint32_t kWidth = 256; TEST_P() local
1925 constexpr uint32_t kWidth = 256; TEST_P() local
1940 constexpr uint32_t kWidth = 256; TEST_P() local
1956 constexpr uint32_t kWidth = 256; TEST_P() local
1975 constexpr uint32_t kWidth = 256; TEST_P() local
1995 constexpr uint32_t kWidth = 256; TEST_P() local
2014 constexpr uint32_t kWidth = 256; TEST_P() local
2026 constexpr uint32_t kWidth = 256; TEST_P() local
2043 constexpr uint32_t kWidth = 256; TEST_P() local
2064 constexpr uint32_t kWidth = 256; TEST_P() local
2085 constexpr uint32_t kWidth = 256u; TEST_P() local
2107 constexpr uint32_t kWidth = 256u; TEST_P() local
2187 constexpr uint32_t kWidth = 256; TEST_P() local
2207 constexpr uint32_t kWidth = 256; TEST_P() local
2219 constexpr uint32_t kWidth = 256; TEST_P() local
2236 constexpr uint32_t kWidth = 256; TEST_P() local
2254 constexpr uint32_t kWidth = 8; TEST_P() local
2312 constexpr uint32_t kWidth = 256; TEST_P() local
2326 constexpr uint32_t kWidth = 256; TEST_P() local
2339 constexpr uint32_t kWidth = 256; TEST_P() local
2356 constexpr uint32_t kWidth = 256; TEST_P() local
2369 constexpr uint32_t kWidth = 256; TEST_P() local
2388 constexpr uint32_t kWidth = 261; TEST_P() local
[all...]
H A 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 in TEST_P() local
357 constexpr uint32_t kWidth = 4; TEST_P() local
394 constexpr uint32_t kWidth = 4; TEST_P() local
435 constexpr uint32_t kWidth = 4; TEST_P() local
474 constexpr uint32_t kWidth = 4; TEST_P() local
[all...]
H A DViewportTests.cpp48 static constexpr uint32_t kWidth = 5; member in ViewportTest
66 utils::BasicRenderPass rp = utils::CreateBasicRenderPass(device, kWidth, kHeight); in TestViewportQuad()
80 for (uint32_t checkX = 0; checkX < kWidth; checkX++) { 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()
158 TestViewportQuad(0, 0, kWidth, kHeight - 1); in TEST_P()
159 TestViewportQuad(0, 1, kWidth, kHeight - 1); in TEST_P()
160 TestViewportQuad(0, 2, kWidth, 1); in TEST_P()
165 TestViewportQuad(1, 1, kWidth 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()
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, kHeigh in TEST_F()
157 static constexpr uint32_t kWidth = 5; global() member in SetScissorTest
[all...]
/third_party/skia/tests/
H A 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 in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all...]
H A 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; in test_scaled()
[all...]
H A 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; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
[all...]
H A DPromiseImageTest.cpp129 const int kWidth = 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()
199 const int kWidth = 10; in DEF_GPUTEST() local
235 kWidth, in DEF_GPUTEST()
245 SkImageInfo info = SkImageInfo::Make(kWidth, kHeight, kRGBA_8888_SkColorType, in DEF_GPUTEST()
253 {kWidth, kHeight}, in DEF_GPUTEST()
279 const int kWidth = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
285 kWidth, kHeigh in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
350 const int kWidth = 10; DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all...]
H A DGpuRectanizerTest.cpp15 static const int kWidth = 1024; variable
20 REPORTER_ASSERT(reporter, kWidth == rectanizer->width()); in test_rectanizer_basic()
46 GrRectanizerSkyline skylineRectanizer(kWidth, kHeight); in test_skyline()
53 GrRectanizerPow2 pow2Rectanizer(kWidth, kHeight); in test_pow2()
64 rects.push_back(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
/third_party/node/deps/v8/src/objects/
H A Dswiss-hash-table-helpers.h239 static constexpr size_t kWidth = 16; // the number of slots per group
246 BitMask<uint32_t, kWidth> Match(h2_t hash) const {
248 return BitMask<uint32_t, kWidth>(
253 BitMask<uint32_t, kWidth> MatchEmpty() const {
256 return BitMask<uint32_t, kWidth>(
264 BitMask<uint32_t, kWidth> MatchEmptyOrDeleted() const {
266 return BitMask<uint32_t, kWidth>(
297 static constexpr size_t kWidth = 16; // the number of slots per group
299 explicit GroupSse2Polyfill(const ctrl_t* pos) { memcpy(ctrl_, pos, kWidth); }
302 BitMask<uint32_t, kWidth> Matc
[all...]
/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, kHeigh in runSharedMemoryTest()
720 const int kWidth = 4, kHeight = 6; TEST_P() local
770 constexpr GLsizei kWidth = 4, kHeight = 6; TEST_P() local
1124 constexpr unsigned int kWidth = 16; TEST_P() local
1196 constexpr unsigned int kWidth = 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
3280 constexpr unsigned int kWidth = 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.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 / in TEST_P()
2109 constexpr const GLsizei kWidth = 256; TEST_P() local
2165 constexpr const GLsizei kWidth = 256; TEST_P() local
2210 constexpr const GLsizei kWidth = 256; TEST_P() local
2672 constexpr const GLsizei kWidth = 256; TEST_P() local
[all...]
H A DMultiDrawTest.cpp18 // Create a kWidth * kHeight canvas equally split into kCountX * kCountY tiles
20 constexpr uint32_t kWidth = 256; member
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 in TEST_P()
[all...]
H A 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, kHeigh in TEST_P()
[all...]
H A DMultisampleCompatibilityTest.cpp18 const GLint kWidth = 64; member
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, kHeigh in TEST_P()
[all...]
H A DVulkanImageTest.cpp18 constexpr GLuint kWidth = 64u; member
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 * kHeigh in TEST_P()
[all...]
H A DFramebufferMixedSamplesTest.cpp18 const GLuint kWidth = 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.cpp96 constexpr int kWidth = 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);
39 degenBigQuad->quadTo(0, yPos, kWidth, yPos);
47 kWidth, kHeight,
48 kWidth, 0);
57 kWidth, yPos);
63 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5);
70 degenBigConic->conicTo(0, yPos, kWidth, yPo
89 const SkScalar kWidth = 256; global() member in skiagm::StLouisArchGM
[all...]
H A Dstringart.cpp22 constexpr int kWidth = 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));
100 kWidth = 800, enumerator
125 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); }
133 SkScalar x = rand.nextF() * kWidth; in init()
/third_party/skia/docs/examples/
H A Ddraw_pixel_array_nocopy.cpp5 constexpr int kWidth = 4; in REG_FIDDLE() local
7 static const uint32_t kPixels[kHeight * kWidth] = { in REG_FIDDLE()
15 SkPixmap pixmap(SkImageInfo::Make(kWidth, kHeight, kN32_SkColorType, kPremul_SkAlphaType), in REG_FIDDLE()
16 kPixels, sizeof(uint32_t) * kWidth); in REG_FIDDLE()
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
H A DEGLProtectedContentTest.cpp95 kWidth, in createPbufferSurface()
106 kWidth, 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()
306 kWidth, in createAndroidClientBuffer()
366 static const EGLint kWidth = 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, kHeigh 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, kHeigh in startRenderCmds()
[all...]
/third_party/skia/bench/
H A DRectanizerBench.cpp30 inline static constexpr int kWidth = 1024; member in RectanizerBench
79 fRectanizer = std::make_unique<GrRectanizerPow2>(kWidth, kHeight);
82 fRectanizer = std::make_unique<GrRectanizerSkyline>(kWidth, kHeight);
93 size = SkISize::Make(rand.nextRangeU(1, kWidth / 2),
96 size = SkISize::Make(GrNextPow2(rand.nextRangeU(1, kWidth / 2)),

Completed in 23 milliseconds

12345