Lines Matching refs:mHeight
81 mWindow = createOrGetTestWindow(mXOffset, mYOffset, mWidth, mHeight); in SetUp()
89 mWidth, mHeight, {}, in SetUp()
99 mWidth, mHeight, mWidth, mHeight, in SetUp()
105 mWidth, mHeight, {}, in SetUp()
164 int mHeight = 256; member in gfxstream::__anon6c1a5eac0111::FrameBufferTest
182 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
190 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
198 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
208 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
212 TestTexture forUpdate = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
213 …mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
215 …TestTexture forRead = createTestTextureRGBA8888SingleColor(mWidth, mHeight, 0.0f, 0.0f, 0.0f, 0.0f… in TEST_F()
216 mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
218 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), forRead.data())); in TEST_F()
224 HandleType handle = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
229 TestTexture forUpdate = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
230 mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, in TEST_F()
233 TestTexture forRead = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
234 memset(forRead.data(), 0x0, mWidth * mHeight * 3 / 2); in TEST_F()
235 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
236 mWidth * mHeight * 3 / 2); in TEST_F()
238 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), in TEST_F()
240 memset(forRead.data(), 0xff, mWidth * mHeight * 3 / 2); in TEST_F()
241 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
242 mWidth * mHeight * 3 / 2); in TEST_F()
244 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), in TEST_F()
251 HandleType handle = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
256 TestTexture forUpdate = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
257 mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, in TEST_F()
260 TestTexture forRead = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
261 memset(forRead.data(), 0x0, mWidth * mHeight * 3 / 2); in TEST_F()
262 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
263 mWidth * mHeight * 3 / 2); in TEST_F()
265 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), in TEST_F()
267 memset(forRead.data(), 0xff, mWidth * mHeight * 3 / 2); in TEST_F()
268 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
269 mWidth * mHeight * 3 / 2); in TEST_F()
271 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), in TEST_F()
280 mHeight = 8; in TEST_F()
281 HandleType handle_nv12 = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
301 mFb->updateColorBuffer(handle_nv12, 0, 0, mWidth, mHeight, GL_RGBA, in TEST_F()
306 mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_YUV_420_888); in TEST_F()
312 mFb->swapTexturesAndUpdateColorBuffer(handle_nv12, 0, 0, mWidth, mHeight, in TEST_F()
315 mFb->swapTexturesAndUpdateColorBuffer(handle_yuv420, 0, 0, mWidth, mHeight, in TEST_F()
320 memset(forRead, 0x0, mWidth * mHeight * 3 / 2); in TEST_F()
321 mFb->readColorBufferYUV(handle_yuv420, 0, 0, mWidth, mHeight, forRead, in TEST_F()
322 mWidth * mHeight * 3 / 2); in TEST_F()
325 ImageMatches(mWidth, mHeight * 3 / 2, 1, mWidth, golden, forRead)); in TEST_F()
333 HandleType handle = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
338 TestTexture forUpdate = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
339 mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, in TEST_F()
342 TestTexture forRead = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
343 memset(forRead.data(), 0x0, mWidth * mHeight * 3 / 2); in TEST_F()
344 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
345 mWidth * mHeight * 3 / 2); in TEST_F()
347 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), in TEST_F()
349 memset(forRead.data(), 0xff, mWidth * mHeight * 3 / 2); in TEST_F()
350 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
351 mWidth * mHeight * 3 / 2); in TEST_F()
353 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), in TEST_F()
364 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
368 TestTexture forUpdate = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
369 …mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
371 …TestTexture forRead = createTestTextureRGBA8888SingleColor(mWidth, mHeight, 0.0f, 0.0f, 0.0f, 0.0f… in TEST_F()
372 mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
374 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), in TEST_F()
394 HandleType handle = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
401 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
416 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
418 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
438 mWidth, mHeight, color[0], color[1], color[2], color[3]); in TEST_F()
442 mWidth, mHeight, 0.0f, 0.0f, 0.0f, 0.0f); in TEST_F()
445 colorBuffer, 0, 0, mWidth, mHeight, in TEST_F()
450 mWidth, mHeight, 4, mWidth, in TEST_F()
476 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
501 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
503 TestTexture forUpdate = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
504 …mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
509 …TestTexture forRead = createTestTextureRGBA8888SingleColor(mWidth, mHeight, 0.0f, 0.0f, 0.0f, 0.0f… in TEST_F()
510 mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
512 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), forRead.data())); in TEST_F()
523 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
528 TestTexture forUpdate = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
529 …mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
531 …TestTexture forRead = createTestTextureRGBA8888SingleColor(mWidth, mHeight, 0.0f, 0.0f, 0.0f, 0.0f… in TEST_F()
532 mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
534 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), forRead.data())); in TEST_F()
542 HandleType handle = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
566 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
568 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
690 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
692 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
740 mFb->createColorBuffer(mWidth, mHeight, GL_BGRA_EXT, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
749 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
753 TestTexture forUpdate = createTestPatternRGBA8888(mWidth, mHeight); in TEST_F()
754 …mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
756 …TestTexture forRead = createTestTextureRGBA8888SingleColor(mWidth, mHeight, 0.0f, 0.0f, 0.0f, 0.0f… in TEST_F()
758 …mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_BGRA_EXT, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
763 for (uint32_t row = 0; row < mHeight; ++row) { in TEST_F()
778 EXPECT_TRUE(ImageMatches(mWidth, mHeight, 4, mWidth, forUpdate.data(), forRead.data())); in TEST_F()
794 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
811 uint32_t w = mWidth / 2, h = mHeight / 2; in TEST_F()
825 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
829 mFb->createColorBuffer(mWidth/2, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
830 …TestTexture forUpdate0 = createTestTextureRGBA8888SingleColor(mWidth/2, mHeight, 1.0f, 1.0f, 1.0f,… in TEST_F()
832 …mFb->updateColorBuffer(cb0, 0, 0, mWidth/2, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate0.data()); in TEST_F()
835 mFb->createColorBuffer(mWidth/2, mHeight/2, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
837 …TestTexture forUpdate1 = createTestTextureRGBA8888SingleColor(mWidth/2, mHeight/2, 1.0f, 0.0f, 0.0… in TEST_F()
838 …mFb->updateColorBuffer(cb1, 0, 0, mWidth/2, mHeight/2, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate1.data(… in TEST_F()
841 mFb->createColorBuffer(mWidth/4, mHeight/2, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
843 …TestTexture forUpdate2 = createTestTextureRGBA8888SingleColor(mWidth/4, mHeight/2, 0.0f, 1.0f, 0.0… in TEST_F()
844 …mFb->updateColorBuffer(cb2, 0, 0, mWidth/4, mHeight/2, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate2.data(… in TEST_F()
847 mFb->createColorBuffer(mWidth/4, mHeight/4, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
849 …TestTexture forUpdate3 = createTestTextureRGBA8888SingleColor(mWidth/4, mHeight/4, 0.0f, 0.0f, 1.0… in TEST_F()
850 …mFb->updateColorBuffer(cb3, 0, 0, mWidth/4, mHeight/4, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate3.data(… in TEST_F()
853 {{cb1, -1, -1, (uint32_t)mWidth/2, (uint32_t)mHeight/2, 240}, in TEST_F()
854 {cb2, -1, -1, (uint32_t)mWidth/4, (uint32_t)mHeight/2, 240}, in TEST_F()
855 {cb3, -1, -1, (uint32_t)mWidth/4, (uint32_t)mHeight/4, 240}}; in TEST_F()
931 void* pixmap = createNativePixmap(mWidth, mHeight, 4); in TEST_F()
935 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
940 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
960 mWidth, mHeight, color[0], color[1], color[2], color[3]); in TEST_F()
964 mWidth, mHeight, 0.0f, 0.0f, 0.0f, 0.0f); in TEST_F()
967 colorBuffer, 0, 0, mWidth, mHeight, in TEST_F()
972 mWidth, mHeight, 4, mWidth, in TEST_F()