Home
last modified time | relevance | path

Searched refs:fDisplay (Results 1 – 17 of 17) sorted by relevance

/external/skia/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp69 Display* fDisplay; member in __anond47201ea0111::GLXGLTestContext
77 AutoDisplay() { fDisplay = XOpenDisplay(nullptr); } in get_display()
79 if (fDisplay) { in get_display()
80 XCloseDisplay(fDisplay); in get_display()
83 Display* display() const { return fDisplay; } in get_display()
85 Display* fDisplay; in get_display() member in __anond47201ea0111::get_display::AutoDisplay
95 , fDisplay(nullptr) in GLXGLTestContext()
98 fDisplay = get_display(); in GLXGLTestContext()
102 if (!fDisplay) { in GLXGLTestContext()
118 if (!glXQueryVersion(fDisplay, &glx_major, &glx_minor) || in GLXGLTestContext()
[all …]
/external/skia/tools/viewer/sk_app/android/
DGLWindowContext_android.cpp33 EGLDisplay fDisplay; member in __anona2635fa60111::GLWindowContext_android
46 , fDisplay(EGL_NO_DISPLAY) in GLWindowContext_android()
64 fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in onInitializeContext()
68 eglInitialize(fDisplay, &majorVersion, &minorVersion); in onInitializeContext()
87 SkAssertResult(eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)); in onInitializeContext()
95 fDisplay, surfaceConfig, nullptr, kEGLContextAttribsForOpenGLES); in onInitializeContext()
116 fSurfaceAndroid = eglCreateWindowSurface(fDisplay, surfaceConfig, fNativeWindow, windowAttribs); in onInitializeContext()
119 fSurfaceAndroid = eglCreateWindowSurface(fDisplay, surfaceConfig, fNativeWindow, nullptr); in onInitializeContext()
123 SkAssertResult(eglMakeCurrent(fDisplay, fSurfaceAndroid, fSurfaceAndroid, fEGLContext)); in onInitializeContext()
132 eglGetConfigAttrib(fDisplay, surfaceConfig, EGL_STENCIL_SIZE, &fStencilBits); in onInitializeContext()
[all …]
/external/skia/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp37 EGLDisplay fDisplay; member in __anon4a5d20840111::EGLFenceSync
60 EGLDisplay fDisplay; member in __anon4a5d20840111::EGLGLTestContext
66 , fDisplay(EGL_NO_DISPLAY) in EGLGLTestContext()
112 fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in EGLGLTestContext()
116 eglInitialize(fDisplay, &majorVersion, &minorVersion); in EGLGLTestContext()
119 SkDebugf("VENDOR: %s\n", eglQueryString(fDisplay, EGL_VENDOR)); in EGLGLTestContext()
120 SkDebugf("APIS: %s\n", eglQueryString(fDisplay, EGL_CLIENT_APIS)); in EGLGLTestContext()
121 SkDebugf("VERSION: %s\n", eglQueryString(fDisplay, EGL_VERSION)); in EGLGLTestContext()
122 SkDebugf("EXTENSIONS %s\n", eglQueryString(fDisplay, EGL_EXTENSIONS)); in EGLGLTestContext()
141 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in EGLGLTestContext()
[all …]
/external/skia/tools/viewer/sk_app/unix/
DGLWindowContext_unix.cpp35 Display* fDisplay; member in __anoneff89bac0111::GLWindowContext_xlib
46 , fDisplay(winInfo.fDisplay) in GLWindowContext_xlib()
59 SkASSERT(fDisplay); in onInitializeContext()
78 fGLContext = createContextAttribs(fDisplay, *fFBConfig, nullptr, True, attribs); in onInitializeContext()
86 fGLContext = glXCreateContext(fDisplay, fVisualInfo, nullptr, GL_TRUE); in onInitializeContext()
92 if (glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
98 glXGetConfig(fDisplay, fVisualInfo, GLX_STENCIL_SIZE, &fStencilBits); in onInitializeContext()
99 glXGetConfig(fDisplay, fVisualInfo, GLX_SAMPLES_ARB, &fSampleCount); in onInitializeContext()
104 XGetGeometry(fDisplay, fWindow, &root, &x, &y, in onInitializeContext()
115 if (!fDisplay || !fGLContext) { in onDestroyContext()
[all …]
DWindow_unix.cpp49 if (fDisplay) { in initWindow()
52 fDisplay = display; in initWindow()
86 fFBConfig = glXChooseFBConfig(fDisplay, DefaultScreen(fDisplay), msaaChooseFBConfigAtt, &n); in initWindow()
88 fVisualInfo = glXGetVisualFromFBConfig(fDisplay, *fFBConfig); in initWindow()
106 fFBConfig = glXChooseFBConfig(fDisplay, DefaultScreen(fDisplay), kChooseFBConfigAtt, &n); in initWindow()
108 fVisualInfo = glXGetVisualFromFBConfig(fDisplay, *fFBConfig); in initWindow()
166 if (fDisplay) { in closeWindow()
169 XFreeGC(fDisplay, fGC); in closeWindow()
173 XDestroyWindow(fDisplay, fWindow); in closeWindow()
183 fDisplay = nullptr; in closeWindow()
[all …]
DRasterWindowContext_unix.cpp29 Display* fDisplay; member in __anon3feccfaa0111::RasterWindowContext_xlib
39 , fDisplay(display) in RasterWindowContext_xlib()
41 fGC = XCreateGC(fDisplay, fWindow, 0, nullptr); in RasterWindowContext_xlib()
50 XGetWindowAttributes(fDisplay, fWindow, &attrs); in setDisplayParams()
85 XPutImage(fDisplay, fWindow, fGC, &image, 0, 0, 0, 0, pm.width(), pm.height()); in swapBuffers()
94 WindowContext* ctx = new RasterWindowContext_xlib(info.fDisplay, info.fWindow, info.fWidth, in NewRasterForXlib()
DVulkanWindowContext_unix.cpp38 surfaceCreateInfo.connection = XGetXCBConnection(info.fDisplay); in NewVulkanForXlib()
61 Display* display = info.fDisplay; in NewVulkanForXlib()
DWindow_unix.h24 , fDisplay(nullptr) in Window_unix()
78 Display* fDisplay; variable
DWindowContextFactory_unix.h24 Display* fDisplay; member
/external/skia/tools/gpu/gl/angle/
DGLTestContext_angle.cpp94 void* fDisplay; member in __anon3e5f26090111::ANGLEGLContext
113 , fDisplay(display) in ANGLEGLContext()
121 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext()
159 fDisplay = get_angle_egl_display(fDeviceContext, type); in ANGLEGLContext()
162 SkASSERT(EGL_NO_DISPLAY == fDisplay); in ANGLEGLContext()
163 fDisplay = get_angle_egl_display(EGL_DEFAULT_DISPLAY, type); in ANGLEGLContext()
165 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext()
172 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in ANGLEGLContext()
190 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in ANGLEGLContext()
202 fContext = eglCreateContext(fDisplay, surfaceConfig, eglShareContext, contextAttribs); in ANGLEGLContext()
[all …]
/external/skia/src/views/unix/
DSkOSWindow_Unix.cpp37 fUnixWindow.fDisplay = nullptr; in SkOSWindow()
48 if (fUnixWindow.fDisplay) { in internalCloseWindow()
51 XFreeGC(fUnixWindow.fDisplay, fUnixWindow.fGc); in internalCloseWindow()
53 XDestroyWindow(fUnixWindow.fDisplay, fUnixWindow.fWin); in internalCloseWindow()
55 XCloseDisplay(fUnixWindow.fDisplay); in internalCloseWindow()
56 fUnixWindow.fDisplay = nullptr; in internalCloseWindow()
66 if (fUnixWindow.fDisplay) { in initWindow()
69 glXGetConfig(fUnixWindow.fDisplay, fVi, GLX_SAMPLES_ARB, &info->fSampleCount); in initWindow()
70 glXGetConfig(fUnixWindow.fDisplay, fVi, GLX_STENCIL_SIZE, &info->fStencilBits); in initWindow()
78 fUnixWindow.fDisplay = XOpenDisplay(nullptr); in initWindow()
[all …]
/external/skia/tools/gpu/gl/command_buffer/
DGLTestContext_command_buffer.cpp142 : fContext(EGL_NO_CONTEXT), fDisplay(EGL_NO_DISPLAY), fSurface(EGL_NO_SURFACE) { in CommandBufferGLTestContext()
165 fDisplay = gfGetDisplay(EGL_DEFAULT_DISPLAY); in CommandBufferGLTestContext()
166 if (EGL_NO_DISPLAY == fDisplay) { in CommandBufferGLTestContext()
170 if (!gfInitialize(fDisplay, nullptr, nullptr)) { in CommandBufferGLTestContext()
176 if (!gfChooseConfig(fDisplay, configAttribs, static_cast<EGLConfig *>(&fConfig), 1, in CommandBufferGLTestContext()
183 fSurface = gfCreatePbufferSurface(fDisplay, in CommandBufferGLTestContext()
199 fContext = gfCreateContext(fDisplay, static_cast<EGLConfig>(fConfig), eglShareContext, in CommandBufferGLTestContext()
207 if (!gfMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in CommandBufferGLTestContext()
237 if (EGL_NO_DISPLAY == fDisplay) { in destroyGLContext()
241 gfDestroyContext(fDisplay, fContext); in destroyGLContext()
[all …]
DGLTestContext_command_buffer.h50 void *fDisplay; variable
/external/skia/src/views/win/
DSkOSWindow_win.cpp59 fDisplay = EGL_NO_DISPLAY; in SkOSWindow()
77 eglDestroyContext(fDisplay, fContext); in ~SkOSWindow()
82 eglDestroySurface(fDisplay, fSurface); in ~SkOSWindow()
86 if (EGL_NO_DISPLAY != fDisplay) { in ~SkOSWindow()
87 eglTerminate(fDisplay); in ~SkOSWindow()
88 fDisplay = EGL_NO_DISPLAY; in ~SkOSWindow()
547 if (EGL_NO_DISPLAY == fDisplay) { in attachANGLE()
550 &fDisplay, in attachANGLE()
567 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in attachANGLE()
571 eglGetConfigAttrib(fDisplay, fConfig, EGL_STENCIL_SIZE, &info->fStencilBits); in attachANGLE()
[all …]
/external/skia/include/views/
DSkOSWindow_Unix.h19 Display* fDisplay; member
32 void* getDisplay() const { return (void*)fUnixWindow.fDisplay; } in getDisplay()
DSkOSWindow_Win.h94 EGLDisplay fDisplay; variable
/external/skia/src/gpu/
DGrAHardwareBufferImageGenerator.cpp35 , fDisplay(display) { } in BufferCleanupHelper()
37 eglDestroyImageKHR(fDisplay, fImage); in ~BufferCleanupHelper()
41 EGLDisplay fDisplay; member in BufferCleanupHelper