Chromium Code Reviews| Index: ui/ozone/platform/drm/gpu/gbm_surface_factory.cc |
| diff --git a/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc b/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc |
| index 32ffdad83751ff1a0184849b9864de0c104d3ef9..331babc07c9430fbc86a8da5e83c9b68fbc93e92 100644 |
| --- a/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc |
| +++ b/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc |
| @@ -54,6 +54,27 @@ intptr_t GbmSurfaceFactory::GetNativeDisplay() { |
| return EGL_DEFAULT_DISPLAY; |
| } |
| +const int32_t* GbmSurfaceFactory::GetEGLSurfaceProperties( |
| + const int32_t* desired_list) { |
| + DCHECK(thread_checker_.CalledOnValidThread()); |
| + static const int32_t kConfigAttribs[] = {EGL_BUFFER_SIZE, |
| + 32, |
| + EGL_ALPHA_SIZE, |
| + 8, |
| + EGL_BLUE_SIZE, |
| + 8, |
| + EGL_GREEN_SIZE, |
| + 8, |
| + EGL_RED_SIZE, |
| + 8, |
| + EGL_RENDERABLE_TYPE, |
| + EGL_OPENGL_ES2_BIT, |
| + EGL_SURFACE_TYPE, |
| + EGL_WINDOW_BIT, |
|
dnicoara
2016/03/01 18:15:56
This should be EGL_DONT_CARE (marcheu@ updated thi
kylechar
2016/03/03 16:09:23
Done.
|
| + EGL_NONE}; |
| + return kConfigAttribs; |
| +} |
| + |
| bool GbmSurfaceFactory::LoadEGLGLES2Bindings( |
| AddGLLibraryCallback add_gl_library, |
| SetGLGetProcAddressProcCallback set_gl_get_proc_address) { |