/external/skia/tools/gpu/gl/glx/ |
D | CreatePlatformGLTestContext_glx.cpp | 70 Display* fDisplay; member in __anon97718d280111::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 __anon97718d280111::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/skqp/tools/gpu/gl/glx/ |
D | CreatePlatformGLTestContext_glx.cpp | 70 Display* fDisplay; member in __anonea36fe9f0111::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 __anonea36fe9f0111::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/skqp/tools/sk_app/android/ |
D | GLWindowContext_android.cpp | 33 EGLDisplay fDisplay; member in __anon01a746fa0111::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() 118 fSurfaceAndroid = eglCreateWindowSurface(fDisplay, surfaceConfig, fNativeWindow, windowAttribs); in onInitializeContext() 121 fSurfaceAndroid = eglCreateWindowSurface(fDisplay, surfaceConfig, fNativeWindow, nullptr); in onInitializeContext() 125 SkAssertResult(eglMakeCurrent(fDisplay, fSurfaceAndroid, fSurfaceAndroid, fEGLContext)); in onInitializeContext() 134 eglGetConfigAttrib(fDisplay, surfaceConfig, EGL_STENCIL_SIZE, &fStencilBits); in onInitializeContext() [all …]
|
/external/skia/tools/sk_app/android/ |
D | GLWindowContext_android.cpp | 33 EGLDisplay fDisplay; member in __anon8235f9030111::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() 118 fSurfaceAndroid = eglCreateWindowSurface(fDisplay, surfaceConfig, fNativeWindow, windowAttribs); in onInitializeContext() 121 fSurfaceAndroid = eglCreateWindowSurface(fDisplay, surfaceConfig, fNativeWindow, nullptr); in onInitializeContext() 125 SkAssertResult(eglMakeCurrent(fDisplay, fSurfaceAndroid, fSurfaceAndroid, fEGLContext)); in onInitializeContext() 134 eglGetConfigAttrib(fDisplay, surfaceConfig, EGL_STENCIL_SIZE, &fStencilBits); in onInitializeContext() [all …]
|
/external/skia/tools/gpu/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 37 EGLDisplay fDisplay; member in __anon0d5cabc20111::EGLFenceSync 71 EGLDisplay fDisplay; member in __anon0d5cabc20111::EGLGLTestContext 77 , fDisplay(EGL_NO_DISPLAY) in EGLGLTestContext() 123 fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in EGLGLTestContext() 127 eglInitialize(fDisplay, &majorVersion, &minorVersion); in EGLGLTestContext() 130 SkDebugf("VENDOR: %s\n", eglQueryString(fDisplay, EGL_VENDOR)); in EGLGLTestContext() 131 SkDebugf("APIS: %s\n", eglQueryString(fDisplay, EGL_CLIENT_APIS)); in EGLGLTestContext() 132 SkDebugf("VERSION: %s\n", eglQueryString(fDisplay, EGL_VERSION)); in EGLGLTestContext() 133 SkDebugf("EXTENSIONS %s\n", eglQueryString(fDisplay, EGL_EXTENSIONS)); in EGLGLTestContext() 152 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in EGLGLTestContext() [all …]
|
/external/skqp/tools/gpu/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 37 EGLDisplay fDisplay; member in __anon60221d390111::EGLFenceSync 71 EGLDisplay fDisplay; member in __anon60221d390111::EGLGLTestContext 77 , fDisplay(EGL_NO_DISPLAY) in EGLGLTestContext() 123 fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in EGLGLTestContext() 127 eglInitialize(fDisplay, &majorVersion, &minorVersion); in EGLGLTestContext() 130 SkDebugf("VENDOR: %s\n", eglQueryString(fDisplay, EGL_VENDOR)); in EGLGLTestContext() 131 SkDebugf("APIS: %s\n", eglQueryString(fDisplay, EGL_CLIENT_APIS)); in EGLGLTestContext() 132 SkDebugf("VERSION: %s\n", eglQueryString(fDisplay, EGL_VERSION)); in EGLGLTestContext() 133 SkDebugf("EXTENSIONS %s\n", eglQueryString(fDisplay, EGL_EXTENSIONS)); in EGLGLTestContext() 152 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in EGLGLTestContext() [all …]
|
/external/skia/tools/sk_app/unix/ |
D | GLWindowContext_unix.cpp | 35 Display* fDisplay; member in __anon6a5eb3490111::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() 100 glXGetConfig(fDisplay, fVisualInfo, GLX_STENCIL_SIZE, &fStencilBits); in onInitializeContext() 101 glXGetConfig(fDisplay, fVisualInfo, GLX_SAMPLES_ARB, &fSampleCount); in onInitializeContext() 107 XGetGeometry(fDisplay, fWindow, &root, &x, &y, (unsigned int*)&fWidth, (unsigned int*)&fHeight, in onInitializeContext() 119 if (!fDisplay || !fGLContext) { in onDestroyContext() [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 __anon289f6dc70111::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 | 25 , fDisplay(nullptr) in Window_unix() 79 Display* fDisplay; variable
|
D | VulkanWindowContext_unix.cpp | 45 surfaceCreateInfo.connection = XGetXCBConnection(info.fDisplay); in NewVulkanForXlib() 67 Display* display = info.fDisplay; in NewVulkanForXlib()
|
D | WindowContextFactory_unix.h | 24 Display* fDisplay; member
|
/external/skqp/tools/sk_app/unix/ |
D | GLWindowContext_unix.cpp | 35 Display* fDisplay; member in __anon2c8694000111::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() 100 glXGetConfig(fDisplay, fVisualInfo, GLX_STENCIL_SIZE, &fStencilBits); in onInitializeContext() 101 glXGetConfig(fDisplay, fVisualInfo, GLX_SAMPLES_ARB, &fSampleCount); in onInitializeContext() 107 XGetGeometry(fDisplay, fWindow, &root, &x, &y, (unsigned int*)&fWidth, (unsigned int*)&fHeight, in onInitializeContext() 119 if (!fDisplay || !fGLContext) { in onDestroyContext() [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 __anon88a6d1fe0111::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 | 25 , fDisplay(nullptr) in Window_unix() 79 Display* fDisplay; variable
|
D | VulkanWindowContext_unix.cpp | 45 surfaceCreateInfo.connection = XGetXCBConnection(info.fDisplay); in NewVulkanForXlib() 67 Display* display = info.fDisplay; in NewVulkanForXlib()
|
/external/skia/tools/sk_app/win/ |
D | ANGLEWindowContext_win.cpp | 50 EGLDisplay fDisplay = EGL_NO_DISPLAY; member in __anonc2400c710111::ANGLEGLWindowContext_win 66 fDisplay = get_angle_egl_display(dc); in onInitializeContext() 67 if (EGL_NO_DISPLAY == fDisplay) { in onInitializeContext() 73 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in onInitializeContext() 99 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in onInitializeContext() 105 fEGLContext = eglCreateContext(fDisplay, surfaceConfig, nullptr, contextAttribs); in onInitializeContext() 110 fEGLSurface = eglCreateWindowSurface(fDisplay, surfaceConfig, fHWND, nullptr); in onInitializeContext() 115 if (!eglMakeCurrent(fDisplay, fEGLSurface, fEGLSurface, fEGLContext)) { in onInitializeContext() 145 eglMakeCurrent(fDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in onDestroyContext() 147 eglDestroyContext(fDisplay, fEGLContext); in onDestroyContext() [all …]
|
/external/skqp/tools/sk_app/win/ |
D | ANGLEWindowContext_win.cpp | 50 EGLDisplay fDisplay = EGL_NO_DISPLAY; member in __anonc96404080111::ANGLEGLWindowContext_win 66 fDisplay = get_angle_egl_display(dc); in onInitializeContext() 67 if (EGL_NO_DISPLAY == fDisplay) { in onInitializeContext() 73 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in onInitializeContext() 99 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in onInitializeContext() 105 fEGLContext = eglCreateContext(fDisplay, surfaceConfig, nullptr, contextAttribs); in onInitializeContext() 110 fEGLSurface = eglCreateWindowSurface(fDisplay, surfaceConfig, fHWND, nullptr); in onInitializeContext() 115 if (!eglMakeCurrent(fDisplay, fEGLSurface, fEGLSurface, fEGLContext)) { in onInitializeContext() 145 eglMakeCurrent(fDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in onDestroyContext() 147 eglDestroyContext(fDisplay, fEGLContext); in onDestroyContext() [all …]
|
/external/skia/tools/gpu/gl/angle/ |
D | GLTestContext_angle.cpp | 105 void* fDisplay; member in __anon3395ebc70111::ANGLEGLContext 124 , fDisplay(display) in ANGLEGLContext() 132 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext() 170 fDisplay = get_angle_egl_display(fDeviceContext, type); in ANGLEGLContext() 173 SkASSERT(EGL_NO_DISPLAY == fDisplay); in ANGLEGLContext() 174 fDisplay = get_angle_egl_display(EGL_DEFAULT_DISPLAY, type); in ANGLEGLContext() 176 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext() 183 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in ANGLEGLContext() 201 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in ANGLEGLContext() 213 fContext = eglCreateContext(fDisplay, surfaceConfig, eglShareContext, contextAttribs); in ANGLEGLContext() [all …]
|
/external/skqp/tools/gpu/gl/angle/ |
D | GLTestContext_angle.cpp | 105 void* fDisplay; member in __anonf5bdcc7e0111::ANGLEGLContext 124 , fDisplay(display) in ANGLEGLContext() 132 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext() 170 fDisplay = get_angle_egl_display(fDeviceContext, type); in ANGLEGLContext() 173 SkASSERT(EGL_NO_DISPLAY == fDisplay); in ANGLEGLContext() 174 fDisplay = get_angle_egl_display(EGL_DEFAULT_DISPLAY, type); in ANGLEGLContext() 176 if (EGL_NO_DISPLAY == fDisplay) { in ANGLEGLContext() 183 if (!eglInitialize(fDisplay, &majorVersion, &minorVersion)) { in ANGLEGLContext() 201 if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { in ANGLEGLContext() 213 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 __anon461ce9e90111::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/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 __anona19be2600111::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/skqp/src/gpu/ |
D | GrAHardwareBufferImageGenerator.cpp | 36 , fDisplay(display) { } in BufferCleanupHelper() 38 eglDestroyImageKHR(fDisplay, fImage); in ~BufferCleanupHelper() 42 EGLDisplay fDisplay; member in BufferCleanupHelper
|
/external/skia/src/gpu/ |
D | GrAHardwareBufferImageGenerator.cpp | 36 , fDisplay(display) { } in BufferCleanupHelper() 38 eglDestroyImageKHR(fDisplay, fImage); in ~BufferCleanupHelper() 42 EGLDisplay fDisplay; member in BufferCleanupHelper
|