Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: ui/ozone/platform/x11/x11_surface_factory.cc

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to use #define Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/x11/x11_surface_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/x11/x11_surface_factory.cc
diff --git a/ui/ozone/platform/x11/x11_surface_factory.cc b/ui/ozone/platform/x11/x11_surface_factory.cc
index 8cbec82836c5f9a6d031be4b726f6a448b9a9850..1322681dbeb374a36c36d5357ede783710b761ff 100644
--- a/ui/ozone/platform/x11/x11_surface_factory.cc
+++ b/ui/ozone/platform/x11/x11_surface_factory.cc
@@ -12,6 +12,7 @@
#include "ui/gl/gl_surface_egl.h"
#include "ui/ozone/common/egl_util.h"
#include "ui/ozone/common/gl_ozone_egl.h"
+#include "ui/ozone/platform/x11/gl_ozone_glx.h"
namespace ui {
@@ -149,6 +150,7 @@ class GLOzoneEGLX11 : public GLOzoneEGL {
} // namespace
X11SurfaceFactory::X11SurfaceFactory() {
+ glx_implementation_.reset(new GLOzoneGLX());
egl_implementation_.reset(new GLOzoneEGLX11());
}
@@ -157,6 +159,7 @@ X11SurfaceFactory::~X11SurfaceFactory() {}
std::vector<gl::GLImplementation>
X11SurfaceFactory::GetAllowedGLImplementations() {
std::vector<gl::GLImplementation> impls;
+ impls.push_back(gl::kGLImplementationDesktopGL);
impls.push_back(gl::kGLImplementationEGLGLES2);
impls.push_back(gl::kGLImplementationOSMesaGL);
return impls;
@@ -164,6 +167,8 @@ X11SurfaceFactory::GetAllowedGLImplementations() {
GLOzone* X11SurfaceFactory::GetGLOzone(gl::GLImplementation implementation) {
switch (implementation) {
+ case gl::kGLImplementationDesktopGL:
+ return glx_implementation_.get();
case gl::kGLImplementationEGLGLES2:
return egl_implementation_.get();
default:
« no previous file with comments | « ui/ozone/platform/x11/x11_surface_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698