• Home
  • Raw
  • Download

Lines Matching refs:mEglDisplay

67     EGLDisplay mEglDisplay;  member in android::EGLTest
71 mEglDisplay(EGL_NO_DISPLAY) { in EGLTest()
75 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in SetUp()
76 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); in SetUp()
81 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); in SetUp()
88 EGLBoolean success = eglTerminate(mEglDisplay); in TearDown()
105 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
112 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
115 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
118 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
139 EXPECT_TRUE(eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs)); in TEST_F()
155 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, in TEST_F()
179 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
186 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
189 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
192 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
195 success = eglGetConfigAttrib(mEglDisplay, config, EGL_ALPHA_SIZE, &components[3]); in TEST_F()
217 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3")); in TEST_F()
218 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3_linear")); in TEST_F()
219 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3_passthrough")); in TEST_F()
235 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
241 eglGetConfigAttrib(mEglDisplay, config, EGL_CONFIG_ID, &value); in TEST_F()
243 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
246 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
249 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
252 success = eglGetConfigAttrib(mEglDisplay, config, EGL_ALPHA_SIZE, &components[3]); in TEST_F()
281 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
285 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_GL_COLORSPACE_KHR, &value); in TEST_F()
289 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
303 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3")); in TEST_F()
304 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3_linear")); in TEST_F()
305 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3_passthrough")); in TEST_F()
329 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
338 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_GL_COLORSPACE_KHR, &value); in TEST_F()
342 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
357 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3")); in TEST_F()
358 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3_linear")); in TEST_F()
359 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_display_p3_passthrough")); in TEST_F()
375 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
381 eglGetConfigAttrib(mEglDisplay, config, EGL_CONFIG_ID, &value); in TEST_F()
383 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
386 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
389 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
392 success = eglGetConfigAttrib(mEglDisplay, config, EGL_ALPHA_SIZE, &components[3]); in TEST_F()
421 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
425 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_GL_COLORSPACE_KHR, &value); in TEST_F()
429 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
450 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in get8BitConfig()
456 eglGetConfigAttrib(mEglDisplay, config, EGL_CONFIG_ID, &value); in get8BitConfig()
458 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in get8BitConfig()
461 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in get8BitConfig()
464 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in get8BitConfig()
467 success = eglGetConfigAttrib(mEglDisplay, config, EGL_ALPHA_SIZE, &components[3]); in get8BitConfig()
479 if (hasEglExtension(mEglDisplay, "EGL_EXT_surface_SMPTE2086_metadata")) { in setSurfaceSmpteMetadata()
480 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT, in setSurfaceSmpteMetadata()
482 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT, in setSurfaceSmpteMetadata()
484 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT, in setSurfaceSmpteMetadata()
486 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT, in setSurfaceSmpteMetadata()
488 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT, in setSurfaceSmpteMetadata()
490 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT, in setSurfaceSmpteMetadata()
492 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_WHITE_POINT_X_EXT, in setSurfaceSmpteMetadata()
494 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_WHITE_POINT_Y_EXT, in setSurfaceSmpteMetadata()
496 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_MAX_LUMINANCE_EXT, in setSurfaceSmpteMetadata()
498 eglSurfaceAttrib(mEglDisplay, surface, EGL_SMPTE2086_MIN_LUMINANCE_EXT, in setSurfaceSmpteMetadata()
502 if (hasEglExtension(mEglDisplay, "EGL_EXT_surface_CTA861_3_metadata")) { in setSurfaceSmpteMetadata()
503 eglSurfaceAttrib(mEglDisplay, surface, EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT, in setSurfaceSmpteMetadata()
505 eglSurfaceAttrib(mEglDisplay, surface, EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT, in setSurfaceSmpteMetadata()
514 if (hasEglExtension(mEglDisplay, "EGL_EXT_surface_SMPTE2086_metadata")) { in checkSurfaceSmpteMetadata()
515 … success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT, &value); in checkSurfaceSmpteMetadata()
518 … success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT, &value); in checkSurfaceSmpteMetadata()
521 … success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT, &value); in checkSurfaceSmpteMetadata()
524 … success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT, &value); in checkSurfaceSmpteMetadata()
527 … success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT, &value); in checkSurfaceSmpteMetadata()
530 … success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT, &value); in checkSurfaceSmpteMetadata()
533 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_WHITE_POINT_X_EXT, &value); in checkSurfaceSmpteMetadata()
536 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_WHITE_POINT_Y_EXT, &value); in checkSurfaceSmpteMetadata()
539 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_MAX_LUMINANCE_EXT, &value); in checkSurfaceSmpteMetadata()
542 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_SMPTE2086_MIN_LUMINANCE_EXT, &value); in checkSurfaceSmpteMetadata()
547 if (hasEglExtension(mEglDisplay, "EGL_EXT_surface_CTA861_3_metadata")) { in checkSurfaceSmpteMetadata()
548 …success = eglQuerySurface(mEglDisplay, eglSurface, EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT, &valu… in checkSurfaceSmpteMetadata()
551 …success = eglQuerySurface(mEglDisplay, eglSurface, EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT, &valu… in checkSurfaceSmpteMetadata()
568 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_bt2020_linear")) in TEST_F()
593 … EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs.data()); in TEST_F()
598 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_GL_COLORSPACE_KHR, &value); in TEST_F()
606 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
620 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_gl_colorspace_bt2020_pq")) in TEST_F()
643 … EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs.data()); in TEST_F()
648 success = eglQuerySurface(mEglDisplay, eglSurface, EGL_GL_COLORSPACE_KHR, &value); in TEST_F()
656 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
670 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_EXT_pixel_format_float")); in TEST_F()
684 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
690 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
693 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
696 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
699 success = eglGetConfigAttrib(mEglDisplay, config, EGL_ALPHA_SIZE, &components[3]); in TEST_F()
721 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), NULL); in TEST_F()
725 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
735 ASSERT_TRUE(hasEglExtension(mEglDisplay, "EGL_KHR_no_config_context")); in TEST_F()
750 EGLContext eglContext = eglCreateContext(mEglDisplay, EGL_NO_CONFIG_KHR, EGL_NO_CONTEXT, in TEST_F()
756 eglDestroyContext(mEglDisplay, eglContext); in TEST_F()
786 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
792 eglGetConfigAttrib(mEglDisplay, config, EGL_CONFIG_ID, &value); in TEST_F()
794 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); in TEST_F()
797 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); in TEST_F()
800 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]); in TEST_F()
803 success = eglGetConfigAttrib(mEglDisplay, config, EGL_ALPHA_SIZE, &components[3]); in TEST_F()
826 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), NULL); in TEST_F()
830 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
859 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
881 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); in TEST_F()
906 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
937 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
944 eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
948 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
977 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
984 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()
987 eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), NULL); in TEST_F()
995 EXPECT_TRUE(eglDestroySurface(mEglDisplay, eglSurface)); in TEST_F()