x11_gl_egl_utility.h 847 B

123456789101112131415161718192021222324252627
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_BASE_X_X11_GL_EGL_UTILITY_H_
  5. #define UI_BASE_X_X11_GL_EGL_UTILITY_H_
  6. #include <vector>
  7. #include "third_party/khronos/EGL/egl.h"
  8. namespace ui {
  9. // Returns display attributes for the given |platform_type|.
  10. void GetPlatformExtraDisplayAttribs(EGLenum platform_type,
  11. std::vector<EGLAttrib>* attributes);
  12. // Sets custom alpha and buffer size.
  13. void ChoosePlatformCustomAlphaAndBufferSize(EGLint* alpha_size,
  14. EGLint* buffer_size);
  15. // Returns whether transparent background is suppored.
  16. bool IsTransparentBackgroundSupported();
  17. } // namespace ui
  18. #endif // UI_BASE_X_X11_GL_EGL_UTILITY_H_