| // Copyright 2020 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef UI_GL_GLX_UTIL_H_ |
| #define UI_GL_GLX_UTIL_H_ |
| #include "ui/gfx/x/connection.h" |
| #include "ui/gfx/x/glx.h" |
| #include "ui/gl/gl_export.h" |
| using GLXFBConfig = struct __GLXFBConfigRec*; |
| class NativePixmapDmaBuf; |
| GL_EXPORT GLXFBConfig GetFbConfigForWindow(x11::Connection* connection, |
| GetGlxFbConfigForXProtoFbConfig(x11::Connection* connection, |
| x11::Glx::FbConfig xproto_config); |
| GL_EXPORT x11::Pixmap XPixmapFromNativePixmap( |
| const gfx::NativePixmapDmaBuf& native_pixmap, |
| gfx::BufferFormat buffer_format); |
| #endif // UI_GL_GLX_UTIL_H_ |