/external/skia/tools/gpu/gl/glx/ |
D | CreatePlatformGLTestContext_glx.cpp | 71 Display* fDisplay; member in __anond3c4ad760111::GLXGLTestContext 79 AutoDisplay() { fDisplay = XOpenDisplay(nullptr); } in get_display() 81 if (fDisplay) { in get_display() 82 XCloseDisplay(fDisplay); in get_display() 85 Display* display() const { return fDisplay; } in get_display() 87 Display* fDisplay; in get_display() member in __anond3c4ad760111::get_display::AutoDisplay 108 , fDisplay(nullptr) in GLXGLTestContext() 116 fDisplay = get_display(); in GLXGLTestContext() 120 if (!fDisplay) { in GLXGLTestContext() 136 if (!glXQueryVersion(fDisplay, &glx_major, &glx_minor) || in GLXGLTestContext() [all …]
|
/external/skqp/tools/gpu/gl/glx/ |
D | CreatePlatformGLTestContext_glx.cpp | 70 Display* fDisplay; member in __anon268a1eed0111::GLXGLTestContext 78 AutoDisplay() { fDisplay = XOpenDisplay(nullptr); } in get_display() 80 if (fDisplay) { in get_display() 81 XCloseDisplay(fDisplay); in get_display() 84 Display* display() const { return fDisplay; } in get_display() 86 Display* fDisplay; in get_display() member in __anon268a1eed0111::get_display::AutoDisplay 107 , fDisplay(nullptr) in GLXGLTestContext() 115 fDisplay = get_display(); in GLXGLTestContext() 119 if (!fDisplay) { in GLXGLTestContext() 135 if (!glXQueryVersion(fDisplay, &glx_major, &glx_minor) || in GLXGLTestContext() [all …]
|
/external/skia/tools/sk_app/unix/ |
D | GLWindowContext_unix.cpp | 42 Display* fDisplay; member in __anonf2a87a170111::GLWindowContext_xlib 53 , fDisplay(winInfo.fDisplay) in GLWindowContext_xlib() 66 SkASSERT(fDisplay); in onInitializeContext() 92 fGLContext = createContextAttribs(fDisplay, *fFBConfig, nullptr, True, attribs); in onInitializeContext() 95 XSync(fDisplay, False); in onInitializeContext() 99 glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext() 106 glXMakeCurrent(fDisplay, None, nullptr); in onInitializeContext() 107 glXDestroyContext(fDisplay, fGLContext); in onInitializeContext() 121 fGLContext = glXCreateContext(fDisplay, fVisualInfo, nullptr, GL_TRUE); in onInitializeContext() 127 if (!current && !glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext() [all …]
|
D | Window_unix.cpp | 55 if (fDisplay) { in initWindow() 58 fDisplay = display; in initWindow() 92 fFBConfig = glXChooseFBConfig(fDisplay, DefaultScreen(fDisplay), msaaChooseFBConfigAtt, &n); in initWindow() 94 fVisualInfo = glXGetVisualFromFBConfig(fDisplay, *fFBConfig); in initWindow() 112 fFBConfig = glXChooseFBConfig(fDisplay, DefaultScreen(fDisplay), kChooseFBConfigAtt, &n); in initWindow() 114 fVisualInfo = glXGetVisualFromFBConfig(fDisplay, *fFBConfig); in initWindow() 172 if (fDisplay) { in closeWindow() 175 XFreeGC(fDisplay, fGC); in closeWindow() 179 XDestroyWindow(fDisplay, fWindow); in closeWindow() 189 fDisplay = nullptr; in closeWindow() [all …]
|
D | RasterWindowContext_unix.cpp | 29 Display* fDisplay; member in __anonbaebeb950111::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() 96 info.fDisplay, info.fWindow, info.fWidth, info.fHeight, params)); in MakeRasterForXlib()
|
D | DawnVulkanWindowContext_unix.cpp | 35 Display* fDisplay; member in sk_app::DawnVulkanWindowContext_xlib 45 , fDisplay(winInfo.fDisplay) in DawnVulkanWindowContext_xlib() 51 XGetGeometry(fDisplay, fWindow, &root, &x, &y, &width, &height, &border_width, &depth); in DawnVulkanWindowContext_xlib() 87 surfaceCreateInfo.connection = XGetXCBConnection(fDisplay); in onInitializeContext()
|
D | Window_unix.h | 26 , fDisplay(nullptr) in Window_unix() 82 Display* fDisplay; variable
|
D | VulkanWindowContext_unix.cpp | 47 surfaceCreateInfo.connection = XGetXCBConnection(info.fDisplay); in MakeVulkanForXlib() 69 Display* display = info.fDisplay; in MakeVulkanForXlib()
|
D | WindowContextFactory_unix.h | 31 Display* fDisplay; member
|
/external/skqp/tools/sk_app/unix/ |
D | GLWindowContext_unix.cpp | 42 Display* fDisplay; member in __anonb4d05ace0111::GLWindowContext_xlib 53 , fDisplay(winInfo.fDisplay) in GLWindowContext_xlib() 66 SkASSERT(fDisplay); in onInitializeContext() 91 fGLContext = createContextAttribs(fDisplay, *fFBConfig, nullptr, True, attribs); in onInitializeContext() 94 XSync(fDisplay, False); in onInitializeContext() 98 glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext() 105 glXMakeCurrent(fDisplay, None, nullptr); in onInitializeContext() 106 glXDestroyContext(fDisplay, fGLContext); in onInitializeContext() 120 fGLContext = glXCreateContext(fDisplay, fVisualInfo, nullptr, GL_TRUE); in onInitializeContext() 126 if (!current && !glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext() [all …]
|
D | Window_unix.cpp | 49 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 …]
|
D | RasterWindowContext_unix.cpp | 29 Display* fDisplay; member in __anon1af34fcc0111::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()
|
D | Window_unix.h | 26 , fDisplay(nullptr) in Window_unix() 80 Display* fDisplay; variable
|
D | VulkanWindowContext_unix.cpp | 46 surfaceCreateInfo.connection = XGetXCBConnection(info.fDisplay); in NewVulkanForXlib() 68 Display* display = info.fDisplay; in NewVulkanForXlib()
|
D | WindowContextFactory_unix.h | 24 Display* fDisplay; member
|
/external/skia/tools/sk_app/android/ |
D | GLWindowContext_android.cpp | 33 EGLDisplay fDisplay; member in __anond99922510111::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() 89 SkAssertResult(eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)); in onInitializeContext() 97 fDisplay, surfaceConfig, nullptr, kEGLContextAttribsForOpenGLES); in onInitializeContext() 104 fSurfaceAndroid = eglCreateWindowSurface(fDisplay, surfaceConfig, fNativeWindow, nullptr); in onInitializeContext() 107 SkAssertResult(eglMakeCurrent(fDisplay, fSurfaceAndroid, fSurfaceAndroid, fEGLContext)); in onInitializeContext() 116 eglGetConfigAttrib(fDisplay, surfaceConfig, EGL_STENCIL_SIZE, &fStencilBits); in onInitializeContext() 117 eglGetConfigAttrib(fDisplay, surfaceConfig, EGL_SAMPLES, &fSampleCount); in onInitializeContext() [all …]
|
/external/skia/tools/gpu/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 38 EGLDisplay fDisplay; member in __anon49afcc100111::EGLFenceSync 78 EGLDisplay fDisplay; member in __anon49afcc100111::EGLGLTestContext 104 , fDisplay(EGL_NO_DISPLAY) in EGLGLTestContext() 126 fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in EGLGLTestContext() 130 eglInitialize(fDisplay, &majorVersion, &minorVersion); in EGLGLTestContext() 133 SkDebugf("VENDOR: %s\n", eglQueryString(fDisplay, EGL_VENDOR)); in EGLGLTestContext() 134 SkDebugf("APIS: %s\n", eglQueryString(fDisplay, EGL_CLIENT_APIS)); in EGLGLTestContext() 135 SkDebugf("VERSION: %s\n", eglQueryString(fDisplay, EGL_VERSION)); in EGLGLTestContext() 136 SkDebugf("EXTENSIONS %s\n", eglQueryString(fDisplay, EGL_EXTENSIONS)); in EGLGLTestContext() 156 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in EGLGLTestContext() [all …]
|
/external/skqp/tools/sk_app/android/ |
D | GLWindowContext_android.cpp | 33 EGLDisplay fDisplay; member in __anon590a70480111::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() 89 SkAssertResult(eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)); in onInitializeContext() 97 fDisplay, surfaceConfig, nullptr, kEGLContextAttribsForOpenGLES); in onInitializeContext() 104 fSurfaceAndroid = eglCreateWindowSurface(fDisplay, surfaceConfig, fNativeWindow, nullptr); in onInitializeContext() 107 SkAssertResult(eglMakeCurrent(fDisplay, fSurfaceAndroid, fSurfaceAndroid, fEGLContext)); in onInitializeContext() 116 eglGetConfigAttrib(fDisplay, surfaceConfig, EGL_STENCIL_SIZE, &fStencilBits); in onInitializeContext() 117 eglGetConfigAttrib(fDisplay, surfaceConfig, EGL_SAMPLES, &fSampleCount); in onInitializeContext() [all …]
|
/external/skqp/tools/gpu/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 37 EGLDisplay fDisplay; member in __anon9c753d870111::EGLFenceSync 71 EGLDisplay fDisplay; member in __anon9c753d870111::EGLGLTestContext 97 , fDisplay(EGL_NO_DISPLAY) in EGLGLTestContext() 119 fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in EGLGLTestContext() 123 eglInitialize(fDisplay, &majorVersion, &minorVersion); in EGLGLTestContext() 126 SkDebugf("VENDOR: %s\n", eglQueryString(fDisplay, EGL_VENDOR)); in EGLGLTestContext() 127 SkDebugf("APIS: %s\n", eglQueryString(fDisplay, EGL_CLIENT_APIS)); in EGLGLTestContext() 128 SkDebugf("VERSION: %s\n", eglQueryString(fDisplay, EGL_VERSION)); in EGLGLTestContext() 129 SkDebugf("EXTENSIONS %s\n", eglQueryString(fDisplay, EGL_EXTENSIONS)); in EGLGLTestContext() 149 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in EGLGLTestContext() [all …]
|
/external/skqp/tools/sk_app/win/ |
D | ANGLEWindowContext_win.cpp | 52 EGLDisplay fDisplay = EGL_NO_DISPLAY; member in __anon5ae6a4960111::ANGLEGLWindowContext_win 68 fDisplay = get_angle_egl_display(dc); in onInitializeContext() 69 if (EGL_NO_DISPLAY == fDisplay) { in onInitializeContext() 75 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in onInitializeContext() 101 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in onInitializeContext() 107 fEGLContext = eglCreateContext(fDisplay, surfaceConfig, nullptr, contextAttribs); in onInitializeContext() 112 fEGLSurface = eglCreateWindowSurface(fDisplay, surfaceConfig, fHWND, nullptr); in onInitializeContext() 117 if (!eglMakeCurrent(fDisplay, fEGLSurface, fEGLSurface, fEGLContext)) { in onInitializeContext() 147 eglMakeCurrent(fDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in onDestroyContext() 149 eglDestroyContext(fDisplay, fEGLContext); in onDestroyContext() [all …]
|
/external/skia/tools/sk_app/win/ |
D | ANGLEWindowContext_win.cpp | 52 EGLDisplay fDisplay = EGL_NO_DISPLAY; member in __anon53c2acff0111::ANGLEGLWindowContext_win 68 fDisplay = get_angle_egl_display(dc); in onInitializeContext() 69 if (EGL_NO_DISPLAY == fDisplay) { in onInitializeContext() 75 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in onInitializeContext() 101 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in onInitializeContext() 107 fEGLContext = eglCreateContext(fDisplay, surfaceConfig, nullptr, contextAttribs); in onInitializeContext() 112 fEGLSurface = eglCreateWindowSurface(fDisplay, surfaceConfig, fHWND, nullptr); in onInitializeContext() 117 if (!eglMakeCurrent(fDisplay, fEGLSurface, fEGLSurface, fEGLContext)) { in onInitializeContext() 147 eglMakeCurrent(fDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in onDestroyContext() 149 eglDestroyContext(fDisplay, fEGLContext); in onDestroyContext() [all …]
|
/external/skqp/tools/gpu/gl/angle/ |
D | GLTestContext_angle.cpp | 107 void* fDisplay; member in __anon7e07934c0111::ANGLEGLContext 126 , fDisplay(display) in ANGLEGLContext() 134 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext() 172 fDisplay = get_angle_egl_display(fDeviceContext, type); in ANGLEGLContext() 175 SkASSERT(EGL_NO_DISPLAY == fDisplay); in ANGLEGLContext() 176 fDisplay = get_angle_egl_display(EGL_DEFAULT_DISPLAY, type); in ANGLEGLContext() 178 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext() 185 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in ANGLEGLContext() 203 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in ANGLEGLContext() 215 fContext = eglCreateContext(fDisplay, surfaceConfig, eglShareContext, contextAttribs); in ANGLEGLContext() [all …]
|
/external/skia/tools/gpu/gl/command_buffer/ |
D | GLTestContext_command_buffer.cpp | 148 return objects->fDisplay; in CurrentDisplay() 178 objects->fDisplay = display; in MakeCurrent() 190 EGLDisplay fDisplay = EGL_NO_DISPLAY; member in __anon317a78370111::TLSCurrentObjects 220 : fContext(EGL_NO_CONTEXT), fDisplay(EGL_NO_DISPLAY), fSurface(EGL_NO_SURFACE) { in CommandBufferGLTestContext() 243 fDisplay = gfGetDisplay(EGL_DEFAULT_DISPLAY); in CommandBufferGLTestContext() 244 if (EGL_NO_DISPLAY == fDisplay) { in CommandBufferGLTestContext() 248 if (!gfInitialize(fDisplay, nullptr, nullptr)) { in CommandBufferGLTestContext() 254 if (!gfChooseConfig(fDisplay, configAttribs, static_cast<EGLConfig *>(&fConfig), 1, in CommandBufferGLTestContext() 261 fSurface = gfCreatePbufferSurface(fDisplay, in CommandBufferGLTestContext() 277 fContext = gfCreateContext(fDisplay, static_cast<EGLConfig>(fConfig), eglShareContext, in CommandBufferGLTestContext() [all …]
|
/external/skia/tools/gpu/gl/angle/ |
D | GLTestContext_angle.cpp | 111 void* fDisplay; member in __anonbbdfb2950111::ANGLEGLContext 180 , fDisplay(display) in ANGLEGLContext() 196 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext() 234 fDisplay = get_angle_egl_display(fDeviceContext, type); in ANGLEGLContext() 237 SkASSERT(EGL_NO_DISPLAY == fDisplay); in ANGLEGLContext() 238 fDisplay = get_angle_egl_display(EGL_DEFAULT_DISPLAY, type); in ANGLEGLContext() 240 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext() 254 if (getPlatform(fDisplay, angle::g_PlatformMethodNames, angle::g_NumPlatformMethods, in ANGLEGLContext() 265 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in ANGLEGLContext() 283 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in ANGLEGLContext() [all …]
|
/external/skqp/tools/gpu/gl/command_buffer/ |
D | GLTestContext_command_buffer.cpp | 148 return objects->fDisplay; in CurrentDisplay() 178 objects->fDisplay = display; in MakeCurrent() 190 EGLDisplay fDisplay = EGL_NO_DISPLAY; member in __anon8cf970ae0111::TLSCurrentObjects 220 : fContext(EGL_NO_CONTEXT), fDisplay(EGL_NO_DISPLAY), fSurface(EGL_NO_SURFACE) { in CommandBufferGLTestContext() 243 fDisplay = gfGetDisplay(EGL_DEFAULT_DISPLAY); in CommandBufferGLTestContext() 244 if (EGL_NO_DISPLAY == fDisplay) { in CommandBufferGLTestContext() 248 if (!gfInitialize(fDisplay, nullptr, nullptr)) { in CommandBufferGLTestContext() 254 if (!gfChooseConfig(fDisplay, configAttribs, static_cast<EGLConfig *>(&fConfig), 1, in CommandBufferGLTestContext() 261 fSurface = gfCreatePbufferSurface(fDisplay, in CommandBufferGLTestContext() 277 fContext = gfCreateContext(fDisplay, static_cast<EGLConfig>(fConfig), eglShareContext, in CommandBufferGLTestContext() [all …]
|