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

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

Issue 2270463002: Add OzoneGLImpl interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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/common/gl_ozone_egl.cc ('k') | ui/ozone/platform/x11/x11_surface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/x11/x11_surface_factory.h
diff --git a/ui/ozone/platform/x11/x11_surface_factory.h b/ui/ozone/platform/x11/x11_surface_factory.h
index d1fae7128ec47096ba343d345bf32409c67842c4..894a07fbc775099699e82c869b437fb1f3ada2f5 100644
--- a/ui/ozone/platform/x11/x11_surface_factory.h
+++ b/ui/ozone/platform/x11/x11_surface_factory.h
@@ -6,30 +6,28 @@
#define UI_OZONE_PLATFORM_X11_X11_SURFACE_FACTORY_H_
#include <memory>
+#include <vector>
#include "base/macros.h"
#include "ui/gl/gl_surface.h"
+#include "ui/ozone/public/gl_ozone.h"
#include "ui/ozone/public/surface_factory_ozone.h"
namespace ui {
-// Handles creation of EGL and software surfaces for drawing in XWindow.
+// Handles GL initialization and surface/context creation for X11.
class X11SurfaceFactory : public SurfaceFactoryOzone {
public:
X11SurfaceFactory();
~X11SurfaceFactory() override;
// SurfaceFactoryOzone:
- scoped_refptr<gl::GLSurface> CreateViewGLSurface(
- gl::GLImplementation implementation,
- gfx::AcceleratedWidget widget) override;
- scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface(
- gl::GLImplementation implementation,
- const gfx::Size& size) override;
- bool LoadEGLGLES2Bindings() override;
- intptr_t GetNativeDisplay() override;
+ std::vector<gl::GLImplementation> GetAllowedGLImplementations() override;
+ GLOzone* GetGLOzone(gl::GLImplementation implementation) override;
private:
+ std::unique_ptr<GLOzone> egl_implementation_;
+
DISALLOW_COPY_AND_ASSIGN(X11SurfaceFactory);
};
« no previous file with comments | « ui/ozone/common/gl_ozone_egl.cc ('k') | ui/ozone/platform/x11/x11_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698