Home
last modified time | relevance | path

Searched refs:getWindowWidth (Results 1 – 25 of 86) sorted by relevance

1234

/external/angle/src/tests/gl_tests/
DMipmapTest.cpp187 createRGBInitData(getWindowWidth(), getWindowHeight(), 0, 0, 255); // Blue in testSetUp()
189 createRGBInitData(getWindowWidth(), getWindowHeight(), 255, 255, 255); // White in testSetUp()
191 createRGBInitData((getWindowWidth() / 2), (getWindowHeight() / 2), 0, 255, 0); // Green in testSetUp()
193 createRGBInitData((getWindowWidth() / 4), (getWindowHeight() / 4), 255, 0, 0); // Red in testSetUp()
200 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in testSetUp()
205 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in testSetUp()
211 TexImageCubeMapFaces(0, GL_RGB, getWindowWidth(), GL_RGB, GL_UNSIGNED_BYTE, nullptr); in testSetUp()
213 glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X, 0, GL_RGB, getWindowWidth(), getWindowWidth(), in testSetUp()
215 glTexImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_X, 0, GL_RGB, getWindowWidth(), getWindowWidth(), in testSetUp()
217 glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_Y, 0, GL_RGB, getWindowWidth(), getWindowWidth(), in testSetUp()
[all …]
DClipDistanceTest.cpp247 GLuint width = getWindowWidth() / 4 - 1; in TEST_P()
252 x = getWindowWidth() / 4 + 2; in TEST_P()
254 width = getWindowWidth() - x; in TEST_P()
271 width = getWindowWidth() / 4 - 1; in TEST_P()
276 x = getWindowWidth() / 4 + 2; in TEST_P()
278 width = getWindowWidth() - x; in TEST_P()
289 width = getWindowWidth(); in TEST_P()
337 GLuint width = getWindowWidth() / 4 - 1; in TEST_P()
342 x = getWindowWidth() / 4 + 2; in TEST_P()
344 width = getWindowWidth() - x; in TEST_P()
[all …]
DViewportTest.cpp45 glScissor(0, getWindowHeight() / 2, getWindowWidth(), getWindowHeight() / 2); in runScissoredTest()
119 if (0 <= x && x < getWindowWidth() && 0 <= y && y < getWindowHeight()) in checkPixel()
140 glScissor(0, 0, getWindowWidth(), getWindowHeight()); in testSetUp()
141 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in testSetUp()
153 glViewport(0, 0, getWindowWidth() / 4, getWindowHeight() / 4); in TEST_P()
162 glViewport(getWindowWidth() * 3 / 8, getWindowHeight() * 3 / 8, getWindowWidth() / 4, in TEST_P()
172 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P()
181 glViewport(-getWindowWidth() / 2, getWindowHeight() / 2, getWindowWidth(), getWindowHeight()); in TEST_P()
190 glViewport(0, 0, getWindowWidth() * 2, getWindowHeight() * 2); in TEST_P()
199 glViewport(-getWindowWidth() / 2, -getWindowHeight() / 2, getWindowWidth() * 2, in TEST_P()
[all …]
DBlitFramebufferANGLETest.cpp95 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth(), getWindowHeight(), 0, format, in testSetUp()
98 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH24_STENCIL8_OES, getWindowWidth(), in testSetUp()
113 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth() / 2, getWindowHeight() / 2, 0, in testSetUp()
118 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH24_STENCIL8_OES, getWindowWidth() / 2, in testSetUp()
132 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth(), getWindowHeight(), 0, format, in testSetUp()
144 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in testSetUp()
156 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth() * 2, getWindowHeight() * 2, 0, in testSetUp()
171 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth(), getWindowHeight(), 0, format, in testSetUp()
176 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth(), getWindowHeight(), 0, format, in testSetUp()
191 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in testSetUp()
[all …]
DDrawBuffersTest.cpp68 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in setupTest()
195 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, color) in verifyAttachment2DColor()
215 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, getColorForIndex(index)); in verifyAttachment3DOES()
221 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, getColorForIndex(index)); in verifyAttachmentLayer()
410 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in TEST_P()
415 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in TEST_P()
500 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in TEST_P()
505 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in TEST_P()
632 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in TEST_P()
661 EXPECT_PIXEL_NEAR(getWindowWidth() / 2, getWindowHeight() / 2, 127, 127, 127, 255, 1); in TEST_P()
[all …]
DBPTCCompressedTextureTest.cpp122 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P()
123 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P()
144 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P()
145 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P()
193 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P()
194 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P()
297 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P()
298 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P()
322 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P()
323 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P()
[all …]
DMaxTextureSizeTest.cpp124 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); in TEST_P()
125 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]); in TEST_P()
129 for (int x = 1; x < getWindowWidth(); x++) in TEST_P()
131 const GLubyte *prevPixel = &pixels[0] + (((y - 1) * getWindowWidth() + (x - 1)) * 4); in TEST_P()
132 const GLubyte *curPixel = &pixels[0] + ((y * getWindowWidth() + x) * 4); in TEST_P()
196 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); in TEST_P()
197 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]); in TEST_P()
201 for (int x = 1; x < getWindowWidth(); x++) in TEST_P()
203 const GLubyte *prevPixel = &pixels[0] + (((y - 1) * getWindowWidth() + (x - 1)) * 4); in TEST_P()
204 const GLubyte *curPixel = &pixels[0] + ((y * getWindowWidth() + x) * 4); in TEST_P()
[all …]
DPbufferTest.cpp161 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::blue); in TEST_P()
177 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 0, 0, 255, 255); in TEST_P()
215 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P()
230 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 255, 0, 255, 255); in TEST_P()
258 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P()
340 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P()
355 EXPECT_PIXEL_NEAR(getWindowWidth() / 2, getWindowHeight() / 2, kLinearColor[0], kLinearColor[1], in TEST_P()
413 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P()
424 EXPECT_PIXEL_NEAR(getWindowWidth() / 2, getWindowHeight() / 2, kLinearColor[0], kLinearColor[1], in TEST_P()
432 EXPECT_PIXEL_NEAR(getWindowWidth() / 2, getWindowHeight() / 2, kSrgbColor[0], kSrgbColor[1], in TEST_P()
[all …]
DPixmapTest.cpp127 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 0, 0, 255, 255); in TEST_P()
143 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 0, 0, 255, 255); in TEST_P()
186 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P()
201 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 255, 0, 255, 255); in TEST_P()
241 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P()
246 std::vector<unsigned int> pixelData(getWindowWidth() * getWindowHeight(), pixelValue); in TEST_P()
247 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in TEST_P()
258 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 255, 0, 255, 255); in TEST_P()
DDepthStencilTest.cpp38 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in testSetUp()
47 glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, getWindowWidth(), in testSetUp()
63 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, getWindowWidth(), in testSetUp()
110 const int width = getWindowWidth(); in ensureColor()
160 const int w = getWindowWidth(); in prepareSingleEmulatedWithPacked()
278 glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, getWindowWidth(), getWindowHeight(), 0); in TEST_P()
365 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P()
372 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH24_STENCIL8, getWindowWidth(), in TEST_P()
459 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT24, getWindowWidth(), getWindowHeight(), 0, in TEST_P()
470 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, getWindowWidth(), in TEST_P()
[all …]
DWEBGLVideoTextureTest.cpp82 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P()
131 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P()
199 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P()
201 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::green); in TEST_P()
203 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P()
248 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P()
DSimpleOperationTest.cpp224 glScissor(getWindowWidth() / 4, getWindowHeight() / 4, getWindowWidth() / 2, in TEST_P()
236 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::green); in TEST_P()
375 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in TEST_P()
399 for (int x = 0; x < getWindowWidth(); x++) in TEST_P()
411 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in TEST_P()
441 for (auto x = 0; x < getWindowWidth(); x++) in TEST_P()
453 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in TEST_P()
477 const auto centerX = getWindowWidth() / 2; in TEST_P()
485 for (auto x = centerX, y = centerY - 1; x < getWindowWidth() && y >= 0; x++, y--) in TEST_P()
498 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in testSetUp()
[all …]
DLineLoopTest.cpp48 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); in checkPixels()
49 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in checkPixels()
56 for (int x = 0; x < getWindowWidth(); x++) in checkPixels()
58 const GLubyte *pixel = &pixels[0] + ((y * getWindowWidth() + x) * 4); in checkPixels()
420 std::vector<GLColor> expectedPixels(getWindowWidth() * getWindowHeight()); in TEST_P()
421 std::vector<GLColor> renderedPixels(getWindowWidth() * getWindowHeight()); in TEST_P()
440 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
469 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
474 for (int x = 0; x < getWindowWidth(); ++x) in TEST_P()
476 int idx = y * getWindowWidth() + x; in TEST_P()
DRenderbufferMultisampleTest.cpp209 glRenderbufferStorageMultisample(GL_RENDERBUFFER, 4, GL_RGBA8, getWindowWidth(), in TEST_P()
220 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P()
239 glBlitFramebuffer(0, 0, getWindowWidth(), getWindowHeight(), 0, 0, getWindowWidth(), in TEST_P()
244 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, getWindowHeight() / 4, in TEST_P()
DClearTest.cpp296 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in testSetUp()
305 glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, getWindowWidth(), in testSetUp()
321 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, getWindowWidth(), in testSetUp()
466 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in TEST_P()
505 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in TEST_P()
526 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in TEST_P()
534 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::magenta); in TEST_P()
545 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in TEST_P()
1401 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P()
1420 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P()
[all …]
DProvokingVertexTest.cpp87 glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32I, getWindowWidth(), getWindowHeight()); in testSetUp()
197 GLfloat halfPixel = 1.0f / static_cast<GLfloat>(getWindowWidth()); in TEST_P()
221 GLfloat halfPixel = 1.0f / static_cast<GLfloat>(getWindowWidth()); in TEST_P()
281 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight() * 4, 0); in TEST_P()
282 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA_INTEGER, GL_INT, in TEST_P()
297 static_cast<unsigned int>(centerX * static_cast<GLfloat>(getWindowWidth())); in TEST_P()
300 unsigned int pixelIndex = pixelY * getWindowWidth() + pixelX; in TEST_P()
330 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight() * 4, 0); in TEST_P()
331 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA_INTEGER, GL_INT, in TEST_P()
353 static_cast<unsigned int>(centerX * static_cast<GLfloat>(getWindowWidth())); in TEST_P()
[all …]
DIncompleteTextureTest.cpp80 glRenderbufferStorage(GL_RENDERBUFFER, sizedInternalFormat, getWindowWidth(), in setupFramebuffer()
87 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in setupFramebuffer()
186 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - greenTextureSize, getWindowHeight() - greenTextureSize, in TEST_P()
337 const int width = getWindowWidth() - 1; in TEST_P()
391 const int width = getWindowWidth() - 1; in TEST_P()
449 const int width = getWindowWidth() - 1; in TEST_P()
DS3TCTextureSizesTest.cpp93 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor(0, 0, 123, 255)); in TEST_P()
98 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor(0, 0, 123, 255)); in TEST_P()
103 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor(0, 0, 123, 255)); in TEST_P()
108 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor(123, 0, 0, 255)); in TEST_P()
DBlendIntegerTest.cpp70 glRenderbufferStorage(GL_RENDERBUFFER, internalformat, getWindowWidth(), getWindowHeight()); in runTest()
148 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, getWindowWidth(), getWindowHeight()); in runTestMRT()
155 getWindowWidth(), getWindowHeight()); in runTestMRT()
161 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, getWindowWidth(), getWindowHeight()); in runTestMRT()
DDepthStencilFormatsTest.cpp494 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH32F_STENCIL8, getWindowWidth(), getWindowHeight(), 0, in TEST_P()
499 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH32F_STENCIL8, getWindowWidth(), in TEST_P()
918 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P()
923 glTexStorage2D(GL_TEXTURE_2D, 1, GL_DEPTH24_STENCIL8, getWindowWidth(), getWindowHeight()); in TEST_P()
978 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P()
984 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in TEST_P()
990 std::vector<GLuint> depthStencilData(getWindowWidth() * getWindowHeight(), 0x7fffffA9); in TEST_P()
993 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_STENCIL, getWindowWidth(), getWindowHeight(), 0, in TEST_P()
1032 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P()
1045 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P()
[all …]
DIndexBufferOffsetTest.cpp388 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::red); in TEST_P()
431 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::red); in TEST_P()
467 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::red); in TEST_P()
501 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::red); in TEST_P()
538 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::red); in TEST_P()
570 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::red); in TEST_P()
DDrawElementsTest.cpp200 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, 0, GLColor::red); in TEST_P()
202 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::red); in TEST_P()
211 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, 0, GLColor::blue); in TEST_P()
213 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::blue); in TEST_P()
606 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 2, GLColor::red); in TEST_P()
631 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 2, GLColor::green); in TEST_P()
646 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 2, GLColor::blue); in TEST_P()
DStateChangeTest.cpp408 const int w = getWindowWidth(); in TEST_P()
646 getWindowWidth(), getWindowHeight()); in TEST_P()
665 GL_DEPTH_COMPONENT16, getWindowWidth(), getWindowHeight()); in TEST_P()
863 glViewport(0, 0, getWindowWidth() / 2, getWindowHeight()); in TEST_P()
869 glViewport(getWindowWidth() / 2, 0, getWindowWidth() / 2, getWindowHeight()); in TEST_P()
874 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth() / 2, getWindowHeight(), GLColor::red); in TEST_P()
875 EXPECT_PIXEL_RECT_EQ(getWindowWidth() / 2, 0, getWindowWidth() / 2, getWindowHeight(), in TEST_P()
1024 const int w = getWindowWidth() - 1; in TEST_P()
1462 int quarterWidth = getWindowWidth() / 4; in validateSquareAndHourglass()
1491 CreatePixelCenterWindowCoords({{8, 8}, {8, 24}, {24, 24}, {24, 8}}, getWindowWidth(), in TEST_P()
[all …]
/external/deqp/external/openglcts/modules/gles31/
Des31cDrawIndirectTests.cpp224 int getWindowWidth() in getWindowWidth() function in glcts::__anon5a8745280111::DrawIndirectBase
236 width = std::min(getWindowWidth(), 16384); // Cap width to 16384 in getDataSize()
599 float rasterSizeX = 2.0f / static_cast<float>(getWindowWidth()); in PointsGen()
708 float jigX = 0.5f / getWindowWidth(); in TrianglesAdjacencyGen()
742 float jigX = 0.5f / getWindowWidth(); in TriangleStripAdjacencyGen()
2064 CColorArray bufferRef(getWindowWidth() * getWindowHeight(), tcu::Vec4(0.1f, 0.2f, 0.3f, 1.0f)); in Run()
2065 CColorArray bufferTest(getWindowWidth() * getWindowHeight(), tcu::Vec4(0.0f)); in Run()
2066 ReadPixelsFloat<api>(0, 0, getWindowWidth(), getWindowHeight(), &bufferTest[0]); in Run()
2069 …result.sub_result(BuffersCompare(bufferTest, getWindowWidth(), getWindowHeight(), bufferRef, getWi… in Run()
2253 CColorArray bufferRef1(getWindowWidth() / 2 * getWindowHeight() / 2, colors_instanced[0]); in Run()
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cVertexAttribBindingTests.cpp75 int getWindowWidth() in getWindowWidth() function in gl4cts::__anonf72631160111::VertexAttribBindingBase
351 std::vector<Vec3> fb(getWindowWidth() * getWindowHeight()); in Run()
352 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGB, GL_FLOAT, &fb[0][0]); in Run()
353 …if (!CheckRectColor(fb, getWindowWidth(), 0, 0, getWindowWidth(), getWindowHeight(), Vec3(0, 1, 0)… in Run()
359 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGB, GL_FLOAT, &fb[0][0]); in Run()
360 …if (!CheckRectColor(fb, getWindowWidth(), 0, 0, getWindowWidth(), getWindowHeight(), Vec3(1, 1, 0)… in Run()
3114 std::vector<Vec3> fb(getWindowWidth() * getWindowHeight()); in Run()
3115 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGB, GL_FLOAT, &fb[0][0]); in Run()
3116 …if (!CheckRectColor(fb, getWindowWidth(), 0, 0, getWindowWidth(), getWindowHeight(), Vec3(0, 1, 0)… in Run()
3128 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGB, GL_FLOAT, &fb[0][0]); in Run()
[all …]

1234