blob: 59de61ee90e55904b24c28843f0f6994533825a4 [file] [log] [blame]
Alex Vakulenkoe4eec202017-01-27 14:41:04 -08001#ifndef ANDROID_DVR_GRAPHICS_EGL_IMAGE_H_
2#define ANDROID_DVR_GRAPHICS_EGL_IMAGE_H_
3
4#include <EGL/egl.h>
5#include <EGL/eglext.h>
6
7namespace android {
8namespace dvr {
9
10// Create an EGLImage with texture storage defined by the given format and
11// usage flags.
12// For example, to create an RGBA texture for rendering to, specify:
13// format = HAL_PIXEL_FORMAT_RGBA_8888;
14// usage = GRALLOC_USAGE_HW_FB | GRALLOC_USAGE_HW_RENDER;
15EGLImageKHR CreateEglImage(EGLDisplay dpy, int width, int height, int format,
16 int usage);
17
18} // namespace dvr
19} // namespace android
20
21#endif // ANDROID_DVR_GRAPHICS_EGL_IMAGE_H_