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

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

Issue 2165303002: Convert Ozone GBM to use new surface API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ozone_impl
Patch Set: Add missing dep. 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_surface.cc ('k') | 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 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,
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_surface.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698