summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/glx_util.h
blob: 92f39c0bbac67cf46d4c87d378398872c79f704b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2020 The Chromium Authors. All rights reserved.
// 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*;

namespace gl {

GL_EXPORT GLXFBConfig GetFbConfigForWindow(x11::Connection* connection,
                                           x11::Window window);

GL_EXPORT GLXFBConfig
GetGlxFbConfigForXProtoFbConfig(x11::Connection* connection,
                                x11::Glx::FbConfig xproto_config);

}  // namespace gl

#endif  // UI_GL_GLX_UTIL_H_