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

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

Issue 2742713002: Revert of Finish OSMesa support for Ozone X11. (Closed)
Patch Set: Created 3 years, 9 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/gl/BUILD.gn ('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 4ac492365188070db52e1ee0b2ad882d632f0d69..27570cc9b66b4f47db1ff3e73257e6d0bfda5075 100644
--- a/ui/ozone/platform/x11/x11_surface_factory.cc
+++ b/ui/ozone/platform/x11/x11_surface_factory.cc
@@ -11,7 +11,6 @@
#include "ui/gfx/x/x11_types.h"
#include "ui/gl/egl_util.h"
#include "ui/gl/gl_surface_egl.h"
-#include "ui/gl/gl_surface_osmesa_x11.h"
#include "ui/ozone/common/egl_util.h"
#include "ui/ozone/common/gl_ozone_egl.h"
#include "ui/ozone/common/gl_ozone_osmesa.h"
@@ -124,13 +123,11 @@
Destroy();
}
-// GLOzoneEGL implementation that draws to an XWindow.
class GLOzoneEGLX11 : public GLOzoneEGL {
public:
GLOzoneEGLX11() {}
~GLOzoneEGLX11() override {}
- // GLOzoneEGL:
scoped_refptr<gl::GLSurface> CreateViewGLSurface(
gfx::AcceleratedWidget window) override {
return gl::InitializeGLSurface(new GLSurfaceEGLOzoneX11(window));
@@ -152,29 +149,12 @@
DISALLOW_COPY_AND_ASSIGN(GLOzoneEGLX11);
};
-// GLOzoneOSMesa implementation that draws to an XWindow.
-class GLOzoneOSMesaX11 : public GLOzoneOSMesa {
- public:
- GLOzoneOSMesaX11() {}
- ~GLOzoneOSMesaX11() override {}
-
- // GLOzoneOSMesa:
- bool InitializeGLOneOffPlatform() override {
- return gl::GLSurfaceOSMesaX11::InitializeOneOff();
- }
-
- scoped_refptr<gl::GLSurface> CreateViewGLSurface(
- gfx::AcceleratedWidget window) override {
- return gl::InitializeGLSurface(new gl::GLSurfaceOSMesaX11(window));
- }
-};
-
} // namespace
X11SurfaceFactory::X11SurfaceFactory()
: glx_implementation_(base::MakeUnique<GLOzoneGLX>()),
egl_implementation_(base::MakeUnique<GLOzoneEGLX11>()),
- osmesa_implementation_(base::MakeUnique<GLOzoneOSMesaX11>()) {}
+ osmesa_implementation_(base::MakeUnique<GLOzoneOSMesa>()) {}
X11SurfaceFactory::~X11SurfaceFactory() {}
« no previous file with comments | « ui/gl/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698