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

Unified Diff: ui/ozone/platform/wayland/wayland_surface_factory.h

Issue 2313353003: Ozone/Wayland: Move to newer APIs and improve GPU initialization (Closed)
Patch Set: 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
Index: ui/ozone/platform/wayland/wayland_surface_factory.h
diff --git a/ui/ozone/platform/wayland/wayland_surface_factory.h b/ui/ozone/platform/wayland/wayland_surface_factory.h
index ac71c0960fdb7474f18830be757d13daca917573..c2a439cb2cb48f292fddcca084bf7c26e41b233c 100644
--- a/ui/ozone/platform/wayland/wayland_surface_factory.h
+++ b/ui/ozone/platform/wayland/wayland_surface_factory.h
@@ -20,14 +20,8 @@ class WaylandSurfaceFactory : public SurfaceFactoryOzone {
~WaylandSurfaceFactory() 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;
- intptr_t GetNativeDisplay() override;
- bool LoadEGLGLES2Bindings() override;
+ std::vector<gl::GLImplementation> GetAllowedGLImplementations() override;
+ GLOzone* GetGLOzone(gl::GLImplementation implementation) override;
std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
gfx::AcceleratedWidget widget) override;
scoped_refptr<NativePixmap> CreateNativePixmap(
@@ -43,6 +37,7 @@ class WaylandSurfaceFactory : public SurfaceFactoryOzone {
private:
WaylandConnection* connection_;
+ std::unique_ptr<GLOzone> egl_implementation_;
DISALLOW_COPY_AND_ASSIGN(WaylandSurfaceFactory);
};
« no previous file with comments | « ui/ozone/platform/wayland/ozone_platform_wayland.cc ('k') | ui/ozone/platform/wayland/wayland_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698