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

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

Issue 2187443003: Convert Ozone wayland to directly create GLSurfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 2bd8682b0fc0d61f1b577169cbb82353da0f8ad7..e8c056661a75f2eec35c5a006644a5e087b4d63a 100644
--- a/ui/ozone/platform/wayland/wayland_surface_factory.h
+++ b/ui/ozone/platform/wayland/wayland_surface_factory.h
@@ -5,6 +5,9 @@
#ifndef UI_OZONE_PLATFORM_WAYLAND_WAYLAND_SURFACE_FACTORY_H_
#define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_SURFACE_FACTORY_H_
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "ui/gl/gl_surface.h"
#include "ui/ozone/public/surface_factory_ozone.h"
namespace ui {
@@ -16,14 +19,19 @@ class WaylandSurfaceFactory : public SurfaceFactoryOzone {
explicit WaylandSurfaceFactory(WaylandConnection* connection);
~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(
AddGLLibraryCallback add_gl_library,
SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
gfx::AcceleratedWidget widget) override;
- std::unique_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
- gfx::AcceleratedWidget w) override;
scoped_refptr<NativePixmap> CreateNativePixmap(
gfx::AcceleratedWidget widget,
gfx::Size size,
« no previous file with comments | « ui/ozone/platform/wayland/wayland_egl_surface.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