Home
last modified time | relevance | path

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

12345

/third_party/flutter/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLContextCompatibilityTest.cpp36 EGLContextCompatibilityTest() : mDisplay(0) {} in EGLContextCompatibilityTest()
43 mDisplay = eglGetPlatformDisplayEXT( in testSetUp()
45 ASSERT_TRUE(mDisplay != EGL_NO_DISPLAY); in testSetUp()
47 ASSERT_TRUE(eglInitialize(mDisplay, nullptr, nullptr) == EGL_TRUE); in testSetUp()
50 ASSERT_TRUE(eglGetConfigs(mDisplay, nullptr, 0, &nConfigs) == EGL_TRUE); in testSetUp()
55 ASSERT_TRUE(eglGetConfigs(mDisplay, mConfigs.data(), nConfigs, &nReturnedConfigs) == in testSetUp()
62 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
63 eglTerminate(mDisplay); in testTearDown()
71 eglGetConfigAttrib(mDisplay, config, EGL_SAMPLES, &samples); in isMultisampledConfig()
79 eglGetConfigAttrib(mDisplay, config, EGL_RED_SIZE, &red); in isRGBA16FConfig()
[all …]
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()
65 mPbuffer = eglCreatePbufferSurface(mDisplay, mConfig, pbufferAttribs); in testSetUp()
71 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
75 eglDestroySurface(mDisplay, mPbuffer); in testTearDown()
[all …]
DEGLSurfaceTest.cpp37 : mDisplay(EGL_NO_DISPLAY), in EGLSurfaceTest()
54 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
56 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
60 eglDestroySurface(mDisplay, mWindowSurface); in testTearDown()
66 eglDestroySurface(mDisplay, mPbufferSurface); in testTearDown()
72 eglDestroyContext(mDisplay, mContext); in testTearDown()
78 eglDestroyContext(mDisplay, mSecondContext); in testTearDown()
82 eglTerminate(mDisplay); in testTearDown()
83 mDisplay = EGL_NO_DISPLAY; in testTearDown()
107 mDisplay = eglGetPlatformDisplayEXT(EGL_PLATFORM_ANGLE_ANGLE, in initializeDisplay()
[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()
38 EXPECT_TRUE(eglChooseConfig(mDisplay, cfgattrs, &mConfig, 1, &ncfg) != EGL_FALSE); in testSetUp()
42 mContext = eglCreateContext(mDisplay, mConfig, nullptr, ctxattrs); in testSetUp()
46 mSurface = eglCreatePbufferSurface(mDisplay, mConfig, surfattrs); in testSetUp()
52 if (mDisplay != EGL_NO_DISPLAY) in testTearDown()
54 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
55 eglDestroyContext(mDisplay, mContext); in testTearDown()
56 eglDestroySurface(mDisplay, mSurface); in testTearDown()
[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 …]
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()
59 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in testTearDown()
63 eglDestroyContext(mDisplay, mContext); in testTearDown()
68 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 …]
/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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 __anon7550d84d0111::EGLContextSharingTestNoFixture
[all …]
/third_party/flutter/skia/third_party/externals/angle2/util/x11/
DX11Window.cpp259 mDisplay(nullptr), in X11Window()
269 mDisplay(nullptr), in X11Window()
284 mDisplay = XOpenDisplay(nullptr); in initialize()
285 if (!mDisplay) in initialize()
291 int screen = DefaultScreen(mDisplay); in initialize()
292 Window root = RootWindow(mDisplay, screen); in initialize()
297 visual = DefaultVisual(mDisplay, screen); in initialize()
306 XGetVisualInfo(mDisplay, VisualIDMask, &visualTemplate, &numVisuals); in initialize()
317 int depth = DefaultDepth(mDisplay, screen); in initialize()
318 Colormap colormap = XCreateColormap(mDisplay, root, visual, AllocNone); in initialize()
[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 …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DEGLMakeCurrentPerf.cpp35 EGLDisplay mDisplay; member in __anonde2b7a340111::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/src/tests/perf_tests/
DEGLMakeCurrentPerf.cpp35 EGLDisplay mDisplay; member in __anon1027ac7f0111::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 …]

12345