| 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 71ab8e77d5750c7bb46e319114f6b8b84bd8841d..f35edf137312c045cd976e4ff388b6503c5aa378 100644
|
| --- a/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
|
| +++ b/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
|
| @@ -8,10 +8,13 @@
|
| #include <stdint.h>
|
|
|
| #include <map>
|
| +#include <memory>
|
| #include <vector>
|
|
|
| #include "base/macros.h"
|
| #include "base/threading/thread_checker.h"
|
| +#include "ui/gl/gl_implementation.h"
|
| +#include "ui/gl/gl_surface.h"
|
| #include "ui/ozone/public/surface_factory_ozone.h"
|
|
|
| namespace ui {
|
| @@ -30,6 +33,17 @@ class GbmSurfaceFactory : public SurfaceFactoryOzone {
|
| GbmSurfaceless* GetSurface(gfx::AcceleratedWidget widget) const;
|
|
|
| // SurfaceFactoryOzone:
|
| + bool UseNewSurfaceAPI() override;
|
| + 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;
|
| +
|
| intptr_t GetNativeDisplay() override;
|
| std::vector<gfx::BufferFormat> GetScanoutFormats(
|
| gfx::AcceleratedWidget widget) override;
|
| @@ -38,10 +52,6 @@ class GbmSurfaceFactory : public SurfaceFactoryOzone {
|
| SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
|
| std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
|
| gfx::AcceleratedWidget widget) override;
|
| - std::unique_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
|
| - gfx::AcceleratedWidget w) override;
|
| - std::unique_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget(
|
| - gfx::AcceleratedWidget widget) override;
|
| scoped_refptr<ui::NativePixmap> CreateNativePixmap(
|
| gfx::AcceleratedWidget widget,
|
| gfx::Size size,
|
|
|