Home
last modified time | relevance | path

Searched refs:mDisplay (Results 1 – 25 of 71) sorted by relevance

123

/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLBackwardsCompatibleContextTest.cpp32 EGLBackwardsCompatibleContextTest() : mDisplay(0) {} in EGLBackwardsCompatibleContextTest()
37 mDisplay = eglGetPlatformDisplayEXT( in testSetUp()
39 ASSERT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
41 ASSERT_EGL_TRUE(eglInitialize(mDisplay, nullptr, nullptr)); in testSetUp()
44 ASSERT_EGL_TRUE(eglGetConfigs(mDisplay, nullptr, 0, &configsCount)); in testSetUp()
48 ASSERT_EGL_TRUE(eglGetConfigs(mDisplay, configs.data(), configsCount, &configsCount)); in testSetUp()
53 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
67 eglGetConfigAttrib(mDisplay, mConfig, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
73 mPbuffer = eglCreatePbufferSurface(mDisplay, mConfig, pbufferAttribs); in testSetUp()
80 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
[all …]
DEGLQueryContextTest.cpp21 mDisplay = eglGetPlatformDisplayEXT( in testSetUp()
23 EXPECT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
24 EXPECT_TRUE(eglInitialize(mDisplay, nullptr, nullptr) != EGL_FALSE); in testSetUp()
36 EXPECT_TRUE(eglChooseConfig(mDisplay, cfgattrs, &mConfig, 1, &ncfg) != EGL_FALSE); in testSetUp()
40 mContext = eglCreateContext(mDisplay, mConfig, nullptr, ctxattrs); in testSetUp()
44 eglGetConfigAttrib(mDisplay, mConfig, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
48 mSurface = eglCreatePbufferSurface(mDisplay, mConfig, surfattrs); in testSetUp()
55 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
57 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
58 eglDestroyContext(mDisplay, mContext); in testTearDown()
[all …]
DEGLSurfaceTest.cpp39 : mDisplay(EGL_NO_DISPLAY), in EGLSurfaceTest()
55 if (mDisplay == EGL_NO_DISPLAY) in tearDownContextAndSurface()
60 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in tearDownContextAndSurface()
64 eglDestroySurface(mDisplay, mWindowSurface); in tearDownContextAndSurface()
70 eglDestroySurface(mDisplay, mPbufferSurface); in tearDownContextAndSurface()
76 eglDestroyContext(mDisplay, mContext); in tearDownContextAndSurface()
82 eglDestroyContext(mDisplay, mSecondContext); in tearDownContextAndSurface()
92 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
94 eglTerminate(mDisplay); in testTearDown()
95 mDisplay = EGL_NO_DISPLAY; in testTearDown()
[all …]
DEGLCreateContextAttribsTest.cpp21 EGLCreateContextAttribsTest() : mDisplay(EGL_NO_DISPLAY) {} in EGLCreateContextAttribsTest()
26 mDisplay = eglGetPlatformDisplayEXT( in testSetUp()
28 EXPECT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
29 EXPECT_EGL_TRUE(eglInitialize(mDisplay, nullptr, nullptr) != EGL_FALSE); in testSetUp()
32 EGLDisplay mDisplay; member in EGLCreateContextAttribsTest
47 EXPECT_EGL_TRUE(eglChooseConfig(mDisplay, cfgAttribList1, &config, 1, &count)); in TEST_P()
53 context = eglCreateContext(mDisplay, config, nullptr, contextAttribs1); in TEST_P()
59 EXPECT_EGL_TRUE(eglChooseConfig(mDisplay, cfgAttribList2, &config, 1, &count)); in TEST_P()
65 context = eglCreateContext(mDisplay, config, nullptr, contextAttribs2); in TEST_P()
72 context = eglCreateContext(mDisplay, config, nullptr, contextAttribs3); in TEST_P()
[all …]
DEGLNoConfigContextTest.cpp23 EGLNoConfigContextTest() : mDisplay(EGL_NO_DISPLAY), mContext(EGL_NO_CONTEXT) {} in EGLNoConfigContextTest()
30 mDisplay = eglGetPlatformDisplayEXT( in testSetUp()
32 EXPECT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
33 EXPECT_EGL_TRUE(eglInitialize(mDisplay, nullptr, nullptr)); in testSetUp()
35 mExtensionSupported = IsEGLDisplayExtensionEnabled(mDisplay, "EGL_KHR_no_config_context"); in testSetUp()
42 mContext = eglCreateContext(mDisplay, EGL_NO_CONFIG_KHR, nullptr, ctxattrs); in testSetUp()
48 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
52 eglDestroyContext(mDisplay, mContext); in testTearDown()
55 eglTerminate(mDisplay); in testTearDown()
61 EGLDisplay mDisplay = EGL_NO_DISPLAY; member in EGLNoConfigContextTest
[all …]
DEGLBufferAgeTest.cpp21 EGLBufferAgeTest() : mDisplay(EGL_NO_DISPLAY) {} in EGLBufferAgeTest()
26 mDisplay = eglGetPlatformDisplayEXT( in testSetUp()
28 EXPECT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
29 EXPECT_EGL_TRUE(eglInitialize(mDisplay, nullptr, nullptr)); in testSetUp()
31 mExtensionSupported = IsEGLDisplayExtensionEnabled(mDisplay, "EGL_EXT_buffer_age"); in testSetUp()
36 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
38 eglTerminate(mDisplay); in testTearDown()
40 mDisplay = EGL_NO_DISPLAY; in testTearDown()
64 result = eglChooseConfig(mDisplay, attribs, config, 1, &count); in chooseConfig()
74 *context = eglCreateContext(mDisplay, config, nullptr, attribs); in createContext()
[all …]
DEGLFeatureControlTest.cpp19 void testSetUp() override { mDisplay = EGL_NO_DISPLAY; } in testSetUp()
23 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
25 eglTerminate(mDisplay); in testTearDown()
30 EGLDisplay mDisplay; member in EGLFeatureControlTest
39 mDisplay = eglGetPlatformDisplay(EGL_PLATFORM_ANGLE_ANGLE, in initTest()
41 EXPECT_NE(mDisplay, EGL_NO_DISPLAY); in initTest()
43 EXPECT_EQ(eglInitialize(mDisplay, nullptr, nullptr), static_cast<EGLBoolean>(EGL_TRUE)); in initTest()
63 EXPECT_EQ(nullptr, eglQueryStringiANGLE(mDisplay, EGL_FEATURE_NAME_ANGLE, -1)); in TEST_P()
71 egl::Display *display = static_cast<egl::Display *>(mDisplay); in TEST_P()
72 EXPECT_EQ(nullptr, eglQueryStringiANGLE(mDisplay, EGL_FEATURE_NAME_ANGLE, in TEST_P()
[all …]
DEGLProtectedContentTest.cpp28 EGLProtectedContentTest() : mDisplay(EGL_NO_DISPLAY) {} in EGLProtectedContentTest()
33 mDisplay = eglGetPlatformDisplayEXT( in testSetUp()
35 EXPECT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
36 EXPECT_EGL_TRUE(eglInitialize(mDisplay, nullptr, nullptr)); in testSetUp()
42 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
44 eglTerminate(mDisplay); in testTearDown()
46 mDisplay = EGL_NO_DISPLAY; in testTearDown()
71 bool result = eglChooseConfig(mDisplay, attribs, config, 1, &count); in chooseConfig()
84 *context = eglCreateContext(mDisplay, config, nullptr, in createContext()
115 *surface = eglCreatePbufferSurface(mDisplay, config, in createPbufferSurface()
[all …]
DEGLSurfacelessContextTest.cpp24 EGLSurfacelessContextTest() : mDisplay(0) {} in EGLSurfacelessContextTest()
29 mDisplay = eglGetPlatformDisplayEXT( in testSetUp()
31 ASSERT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
33 ASSERT_EGL_TRUE(eglInitialize(mDisplay, nullptr, nullptr)); in testSetUp()
36 ASSERT_EGL_TRUE(eglGetConfigs(mDisplay, nullptr, 0, &nConfigs)); in testSetUp()
41 ASSERT_EGL_TRUE(eglGetConfigs(mDisplay, configs.data(), nConfigs, &nReturnedConfigs)); in testSetUp()
47 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
66 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
70 eglDestroyContext(mDisplay, mContext); in testTearDown()
75 eglDestroySurface(mDisplay, mPbuffer); in testTearDown()
[all …]
DEGLSyncControlTest.cpp62 eglDestroySurface(mDisplay, mSurface); in TearDown()
68 eglDestroyContext(mDisplay, mContext); in TearDown()
72 if (mDisplay != EGL_NO_DISPLAY) in TearDown()
74 eglTerminate(mDisplay); in TearDown()
75 mDisplay = EGL_NO_DISPLAY; in TearDown()
109 mDisplay = eglGetPlatformDisplayEXT(EGL_PLATFORM_ANGLE_ANGLE, in InitializeDisplay()
112 ASSERT_TRUE(mDisplay != EGL_NO_DISPLAY); in InitializeDisplay()
115 ASSERT_TRUE(eglInitialize(mDisplay, &majorVersion, &minorVersion) == EGL_TRUE); in InitializeDisplay()
127 ASSERT_EGL_TRUE(eglChooseConfig(mDisplay, configAttributes, &mConfig, 1, &configCount)); in CreateWindowSurface()
132 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), in CreateWindowSurface()
[all …]
DEGLContextCompatibilityTest.cpp182 mDisplay = eglGetPlatformDisplayEXT( in SetUp()
184 ASSERT_TRUE(mDisplay != EGL_NO_DISPLAY); in SetUp()
186 ASSERT_TRUE(eglInitialize(mDisplay, nullptr, nullptr) == EGL_TRUE); in SetUp()
189 ASSERT_TRUE(eglGetConfigs(mDisplay, nullptr, 0, &nConfigs) == EGL_TRUE); in SetUp()
194 ASSERT_TRUE(eglGetConfigs(mDisplay, mConfigs.data(), nConfigs, &nReturnedConfigs) == in SetUp()
201 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in TearDown()
202 eglTerminate(mDisplay); in TearDown()
214 eglGetConfigAttrib(mDisplay, c1, EGL_COLOR_BUFFER_TYPE, &colorBufferType1); in areConfigsCompatible()
215 eglGetConfigAttrib(mDisplay, c2, EGL_COLOR_BUFFER_TYPE, &colorBufferType2); in areConfigsCompatible()
217 eglGetConfigAttrib(mDisplay, c1, EGL_RED_SIZE, &red1); in areConfigsCompatible()
[all …]
DEGLPrintEGLinfoTest.cpp29 mDisplay = getEGLWindow()->getDisplay(); in testSetUp()
30 ASSERT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
33 EGLDisplay mDisplay = EGL_NO_DISPLAY; member in EGLPrintEGLinfoTest
79 std::cout << "\tVendor: " << GetEGLString(mDisplay, EGL_VENDOR) << std::endl; in TEST_P()
80 std::cout << "\tVersion: " << GetEGLString(mDisplay, EGL_VENDOR) << std::endl; in TEST_P()
81 std::cout << "\tClient APIs: " << GetEGLString(mDisplay, EGL_CLIENT_APIS) << std::endl; in TEST_P()
90 for (auto extension : ParseExtensions(GetEGLString(mDisplay, EGL_EXTENSIONS))) in TEST_P()
392 EXPECT_EGL_TRUE(eglGetConfigs(mDisplay, nullptr, 0, &count)); in TEST_P()
395 EXPECT_EGL_TRUE(eglGetConfigs(mDisplay, configs.data(), count, &count)); in TEST_P()
399 return GetAttrib(mDisplay, a, EGL_CONFIG_ID) < GetAttrib(mDisplay, b, EGL_CONFIG_ID); in TEST_P()
[all …]
DEGLContextSharingTest.cpp74 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
76 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
80 eglDestroySurface(mDisplay, mSurface); in testTearDown()
87 SafeDestroyContext(mDisplay, context); in testTearDown()
90 eglTerminate(mDisplay); in testTearDown()
91 mDisplay = EGL_NO_DISPLAY; in testTearDown()
121 result = eglChooseConfig(mDisplay, attribs, config, 1, &count); in chooseConfig()
131 *context = eglCreateContext(mDisplay, config, nullptr, attribs); in createContext()
142 *surface = eglCreateWindowSurface(mDisplay, config, win, attribs); in createWindowSurface()
149 EGLDisplay mDisplay = EGL_NO_DISPLAY; member in __anonb6d452ac0111::EGLContextSharingTestNoFixture
[all …]
DEGLAndroidFrameBufferTargetTest.cpp26 mDisplay = getEGLWindow()->getDisplay(); in testSetUp()
27 ASSERT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
30 EGLDisplay mDisplay = EGL_NO_DISPLAY; member in EGLAndroidFrameBufferTargetTest
46 ANGLE_SKIP_TEST_IF(!IsEGLDisplayExtensionEnabled(mDisplay, "EGL_ANDROID_framebuffer_target")); in TEST_P()
50 EXPECT_EGL_TRUE(eglGetConfigs(mDisplay, nullptr, 0, &count)); in TEST_P()
53 EXPECT_EGL_TRUE(eglGetConfigs(mDisplay, configs.data(), count, &count)); in TEST_P()
60 if (GetAttrib(mDisplay, config, EGL_FRAMEBUFFER_TARGET_ANDROID) == EGL_TRUE) in TEST_P()
67 return GetAttrib(mDisplay, a, EGL_CONFIG_ID) < GetAttrib(mDisplay, b, EGL_CONFIG_ID); in TEST_P()
78 EXPECT_EGL_TRUE(eglChooseConfig(mDisplay, attribs, nullptr, 0, &count)); in TEST_P()
80 EXPECT_EGL_TRUE(eglChooseConfig(mDisplay, attribs, matchConfigs.data(), count, &count)); in TEST_P()
[all …]
DEGLRobustnessTest.cpp46 mDisplay = eglGetPlatformDisplayEXT(EGL_PLATFORM_ANGLE_ANGLE, in testSetUp()
49 ASSERT_NE(EGL_NO_DISPLAY, mDisplay); in testSetUp()
51 ASSERT_TRUE(eglInitialize(mDisplay, nullptr, nullptr) == EGL_TRUE); in testSetUp()
53 const char *extensions = eglQueryString(mDisplay, EGL_EXTENSIONS); in testSetUp()
62 ASSERT_TRUE(eglGetConfigs(mDisplay, nullptr, 0, &nConfigs) == EGL_TRUE); in testSetUp()
67 ASSERT_TRUE(eglGetConfigs(mDisplay, allConfigs.data(), nConfigs, &nReturnedConfigs) == in testSetUp()
74 eglGetConfigAttrib(mDisplay, config, EGL_SURFACE_TYPE, &surfaceType); in testSetUp()
87 eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in testSetUp()
94 eglDestroySurface(mDisplay, mWindow); in testTearDown()
95 eglDestroyContext(mDisplay, mContext); in testTearDown()
[all …]
DEGLPresentPathD3D11Test.cpp21 : mDisplay(EGL_NO_DISPLAY), in EGLPresentPathD3D11()
52 mDisplay = in initializeEGL()
54 ASSERT_TRUE(EGL_NO_DISPLAY != mDisplay); in initializeEGL()
55 ASSERT_EGL_TRUE(eglInitialize(mDisplay, nullptr, nullptr)); in initializeEGL()
72 ASSERT_EGL_TRUE(eglChooseConfig(mDisplay, configAttribs, &mConfig, 1, &numConfigs)); in initializeEGL()
77 mContext = eglCreateContext(mDisplay, mConfig, nullptr, contextAttribs); in initializeEGL()
83 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in createWindowSurface()
93 ASSERT_EGL_TRUE(eglQueryDisplayAttribEXT(mDisplay, EGL_DEVICE_EXT, &angleDevice)); in createPbufferFromClientBufferSurface()
126 mSurface = eglCreatePbufferFromClientBuffer(mDisplay, EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE, in createPbufferFromClientBufferSurface()
131 void makeCurrent() { ASSERT_EGL_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)); } in makeCurrent()
[all …]
DEGLSurfaceTestMac.mm35 mDisplay = eglGetPlatformDisplay(EGL_PLATFORM_ANGLE_ANGLE,
37 ASSERT_TRUE(mDisplay != EGL_NO_DISPLAY);
39 ASSERT_TRUE(eglInitialize(mDisplay, nullptr, nullptr) == EGL_TRUE);
48 EGLint ret = eglChooseConfig(mDisplay, configAttributes, &mConfig, 1, &configCount);
68 mContext = eglCreateContext(mDisplay, mConfig, EGL_NO_CONTEXT, contextAttributes);
76 eglSwapBuffers(mDisplay, mSurface);
79 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
83 eglDestroySurface(mDisplay, mSurface);
89 eglDestroyContext(mDisplay, mContext);
98 eglTerminate(mDisplay);
[all …]
DEGLDeviceTest.cpp35 mDisplay(EGL_NO_DISPLAY), in EGLDeviceCreationTest()
80 eglDestroySurface(mDisplay, mSurface); in testTearDown()
86 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
87 eglDestroyContext(mDisplay, mContext); in testTearDown()
91 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
93 eglTerminate(mDisplay); in testTearDown()
94 mDisplay = EGL_NO_DISPLAY; in testTearDown()
113 ASSERT_EGL_TRUE(eglInitialize(mDisplay, &majorVersion, &minorVersion)); in CreateWindowSurface()
121 ASSERT_EGL_TRUE(eglChooseConfig(mDisplay, configAttributes, &mConfig, 1, &configCount)); in CreateWindowSurface()
128 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in CreateWindowSurface()
[all …]
DEGLDisplayLuidTest.cpp17 EGLDisplayLuidTest() : mDisplay(EGL_NO_DISPLAY) {} in EGLDisplayLuidTest()
21 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
23 EXPECT_EGL_TRUE(eglTerminate(mDisplay)); in testTearDown()
38 mDisplay = in testValidAttribs()
42 EXPECT_NE(mDisplay, EGL_NO_DISPLAY); in testValidAttribs()
47 EXPECT_EGL_TRUE(eglInitialize(mDisplay, nullptr, nullptr)); in testValidAttribs()
52 EGLDisplay mDisplay; member in EGLDisplayLuidTest
DEGLIOSurfaceClientBufferTest.cpp140 eglGetConfigAttrib(mDisplay, mConfig, EGL_BIND_TO_TEXTURE_TARGET_ANGLE, &target); in getTextureTarget()
162 IOSurfaceClientBufferTest() : mConfig(0), mDisplay(nullptr) {} in IOSurfaceClientBufferTest()
167 mDisplay = getEGLWindow()->getDisplay(); in testSetUp()
192 *pbuffer = eglCreatePbufferFromClientBuffer(mDisplay, EGL_IOSURFACE_ANGLE, ioSurface.get(), in createIOSurfacePbuffer()
210 EGLBoolean result = eglBindTexImage(mDisplay, *pbuffer, EGL_BACK_BUFFER); in bindIOSurfaceToTexture()
257 EGLBoolean result = eglReleaseTexImage(mDisplay, pbuffer, EGL_BACK_BUFFER); in doClearTest()
284 result = eglDestroySurface(mDisplay, pbuffer); in doClearTest()
323 EGLBoolean result = eglDestroySurface(mDisplay, pbuffer); in doSampleTest()
434 EGLBoolean result = eglReleaseTexImage(mDisplay, pbuffer, EGL_BACK_BUFFER); in doBlitTest()
438 result = eglDestroySurface(mDisplay, pbuffer); in doBlitTest()
[all …]
/third_party/skia/third_party/externals/angle2/util/x11/
DX11Window.cpp259 mDisplay(nullptr), in X11Window()
269 mDisplay(nullptr), in X11Window()
284 mDisplay = XOpenDisplay(nullptr); in initializeImpl()
285 if (!mDisplay) in initializeImpl()
291 int screen = DefaultScreen(mDisplay); in initializeImpl()
292 Window root = RootWindow(mDisplay, screen); in initializeImpl()
297 visual = DefaultVisual(mDisplay, screen); in initializeImpl()
306 XGetVisualInfo(mDisplay, VisualIDMask, &visualTemplate, &numVisuals); in initializeImpl()
317 int depth = DefaultDepth(mDisplay, screen); in initializeImpl()
318 Colormap colormap = XCreateColormap(mDisplay, root, visual, AllocNone); in initializeImpl()
[all …]
DX11Pixmap.cpp11 X11Pixmap::X11Pixmap() : mPixmap(0), mDisplay(nullptr) {} in X11Pixmap()
17 XFreePixmap(mDisplay, mPixmap); in ~X11Pixmap()
26 mDisplay = reinterpret_cast<Display *>(display); in initialize()
28 int screen = DefaultScreen(mDisplay); in initialize()
29 Window root = RootWindow(mDisplay, screen); in initialize()
36 XVisualInfo *info = XGetVisualInfo(mDisplay, VisualIDMask, &visualTemplate, &numVisuals); in initialize()
43 mPixmap = XCreatePixmap(mDisplay, root, static_cast<unsigned int>(width), in initialize()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DEGLMakeCurrentPerf.cpp35 EGLDisplay mDisplay; member in __anon2f7b031e0111::EGLMakeCurrentPerfTest
45 mDisplay(EGL_NO_DISPLAY), in EGLMakeCurrentPerfTest()
86 mDisplay = eglGetPlatformDisplayEXT(
95 ASSERT_NE(EGL_NO_DISPLAY, mDisplay); in SetUp()
97 ASSERT_TRUE(eglInitialize(mDisplay, &majorVersion, &minorVersion)); in SetUp()
112 ASSERT_TRUE(eglChooseConfig(mDisplay, configAttrs, &mConfig, 1, &numConfigs)); in SetUp()
114 mContexts[0] = eglCreateContext(mDisplay, mConfig, EGL_NO_CONTEXT, nullptr); in SetUp()
116 mContexts[1] = eglCreateContext(mDisplay, mConfig, EGL_NO_CONTEXT, nullptr); in SetUp()
119 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in SetUp()
121 ASSERT_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContexts[0])); in SetUp()
[all …]
/third_party/skia/third_party/externals/angle2/util/
DEGLWindow.cpp63 mDisplay(EGL_NO_DISPLAY), in EGLWindow()
77 eglSwapBuffers(mDisplay, mSurface); in swap()
87 return mDisplay; in getDisplay()
364 mDisplay = eglGetPlatformDisplay(EGL_PLATFORM_ANGLE_ANGLE, in initializeDisplay()
370 mDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initializeDisplay()
373 if (mDisplay == EGL_NO_DISPLAY) in initializeDisplay()
380 if (eglInitialize(mDisplay, &mEGLMajorVersion, &mEGLMinorVersion) == EGL_FALSE) in initializeDisplay()
396 const char *displayExtensions = eglQueryString(mDisplay, EGL_EXTENSIONS); in initializeSurface()
436 if (!FindEGLConfig(mDisplay, configAttributes.data(), &mConfig)) in initializeSurface()
443 eglGetConfigAttrib(mDisplay, mConfig, EGL_RED_SIZE, &mConfigParams.redBits); in initializeSurface()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/glx/
DWindowSurfaceGLX.cpp33 mDisplay(display), in WindowSurfaceGLX()
57 XDestroyWindow(mDisplay, mWindow); in ~WindowSurfaceGLX()
58 XSync(mDisplay, False); in ~WindowSurfaceGLX()
74 XGetWindowAttributes(mDisplay, mParent, &windowAttributes); in initialize()
113 colormap = XCreateColormap(mDisplay, mParent, visual, AllocNone); in initialize()
124 mWindow = XCreateWindow(mDisplay, mParent, 0, 0, mParentWidth, mParentHeight, 0, in initialize()
132 XMapWindow(mDisplay, mWindow); in initialize()
135 XFlush(mDisplay); in initialize()
140 XFreeColormap(mDisplay, colormap); in initialize()
271 XResizeWindow(mDisplay, mWindow, mParentWidth, mParentHeight); in checkForResize()
[all …]

123