blob: 48777b6f86355e80cf183f416dd41f1c7902dc27 [file] [log] [blame]
Mathias Agopian6cf50a72009-08-06 16:05:39 -07001/*
2 * Copyright (C) 2009 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18#ifndef ANDROID_UI_EGLUTILS_H
19#define ANDROID_UI_EGLUTILS_H
20
21#include <utils/Errors.h>
22#include <ui/PixelFormat.h>
23#include <EGL/egl.h>
24
25
26// ----------------------------------------------------------------------------
27namespace android {
28// ----------------------------------------------------------------------------
29
30class EGLUtils
31{
32public:
33
34 static status_t selectConfigForPixelFormat(
35 EGLDisplay dpy,
36 EGLint const* attrs,
37 PixelFormat format,
38 EGLConfig* outConfig);
39
40 static status_t selectConfigForNativeWindow(
41 EGLDisplay dpy,
42 EGLint const* attrs,
43 EGLNativeWindowType window,
44 EGLConfig* outConfig);
45};
46
47// ----------------------------------------------------------------------------
48}; // namespace android
49// ----------------------------------------------------------------------------
50
51#endif /* ANDROID_UI_EGLUTILS_H */