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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_surface_factory.h

Issue 2327813002: Convert Ozone GBM to use GLOzone. (Closed)
Patch Set: Typo. 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 | « no previous file | ui/ozone/platform/drm/gpu/gbm_surface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/gbm_surface_factory.h
diff --git a/ui/ozone/platform/drm/gpu/gbm_surface_factory.h b/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
index 1e8c00385bcbab5cc747195c5eadb9d3afe67b87..7298476c3ef4a6da37cd9ae6b1c593ed99cf305c 100644
--- a/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
+++ b/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
@@ -15,6 +15,7 @@
#include "base/threading/thread_checker.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface.h"
+#include "ui/ozone/common/gl_ozone_egl.h"
#include "ui/ozone/public/surface_factory_ozone.h"
namespace ui {
@@ -33,20 +34,11 @@ class GbmSurfaceFactory : public SurfaceFactoryOzone {
GbmSurfaceless* GetSurface(gfx::AcceleratedWidget widget) const;
// SurfaceFactoryOzone:
- scoped_refptr<gl::GLSurface> CreateViewGLSurface(
- gl::GLImplementation implementation,
- gfx::AcceleratedWidget widget) override;
- scoped_refptr<gl::GLSurface> CreateSurfacelessViewGLSurface(
- gl::GLImplementation implementation,
- gfx::AcceleratedWidget widget) override;
- scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface(
- gl::GLImplementation implementation,
- const gfx::Size& size) override;
+ std::vector<gl::GLImplementation> GetAllowedGLImplementations() override;
+ GLOzone* GetGLOzone(gl::GLImplementation implementation) override;
- intptr_t GetNativeDisplay() override;
std::vector<gfx::BufferFormat> GetScanoutFormats(
gfx::AcceleratedWidget widget) override;
- bool LoadEGLGLES2Bindings() override;
std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
gfx::AcceleratedWidget widget) override;
scoped_refptr<ui::NativePixmap> CreateNativePixmap(
@@ -61,6 +53,8 @@ class GbmSurfaceFactory : public SurfaceFactoryOzone {
const gfx::NativePixmapHandle& handle) override;
private:
+ std::unique_ptr<GLOzone> egl_implementation_;
+
base::ThreadChecker thread_checker_;
DrmThreadProxy* drm_thread_;
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698