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

Unified Diff: ui/ozone/platform/dri/gbm_surface.h

Issue 812933003: [Ozone-Dri] Create GbmWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-wrapper
Patch Set: Rebased Created 5 years, 11 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/dri/gbm_buffer.cc ('k') | ui/ozone/platform/dri/gbm_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/gbm_surface.h
diff --git a/ui/ozone/platform/dri/gbm_surface.h b/ui/ozone/platform/dri/gbm_surface.h
index d0bb2bda0765836438a5aef93f55c45a1eb988f6..f8ee403f8fc2ea20057590d617bd5b2ea454e981 100644
--- a/ui/ozone/platform/dri/gbm_surface.h
+++ b/ui/ozone/platform/dri/gbm_surface.h
@@ -12,14 +12,13 @@
#include "ui/ozone/public/surface_ozone_egl.h"
struct gbm_bo;
-struct gbm_device;
struct gbm_surface;
namespace ui {
class DriBuffer;
-class DriWrapper;
class DriWindowDelegate;
+class GbmWrapper;
// Extends the GBM surfaceless functionality and adds an implicit surface for
// the primary plane. Arbitrary buffers can still be allocated and displayed as
@@ -27,9 +26,7 @@ class DriWindowDelegate;
// surface and is updated via an EGLSurface.
class GbmSurface : public GbmSurfaceless {
public:
- GbmSurface(DriWindowDelegate* window_delegate,
- gbm_device* device,
- DriWrapper* dri);
+ GbmSurface(DriWindowDelegate* window_delegate, GbmWrapper* gbm);
~GbmSurface() override;
bool Initialize();
@@ -44,9 +41,7 @@ class GbmSurface : public GbmSurfaceless {
void OnSwapBuffersCallback(const SwapCompletionCallback& callback,
gbm_bo* pending_buffer);
- gbm_device* gbm_device_;
-
- DriWrapper* dri_;
+ GbmWrapper* gbm_; // Not owned.
// The native GBM surface. In EGL this represents the EGLNativeWindowType.
gbm_surface* native_surface_;
« no previous file with comments | « ui/ozone/platform/dri/gbm_buffer.cc ('k') | ui/ozone/platform/dri/gbm_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698