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

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

Issue 812933003: [Ozone-Dri] Create GbmWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-wrapper
Patch Set: 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
Index: ui/ozone/platform/dri/gbm_buffer.h
diff --git a/ui/ozone/platform/dri/gbm_buffer.h b/ui/ozone/platform/dri/gbm_buffer.h
index 9b8a9cece02b0c88826aceb89c9efebb0f7cb427..94fddd94197e33a4c2918953a4451f1a95dda0b3 100644
--- a/ui/ozone/platform/dri/gbm_buffer.h
+++ b/ui/ozone/platform/dri/gbm_buffer.h
@@ -13,23 +13,21 @@
#include "ui/ozone/public/surface_factory_ozone.h"
struct gbm_bo;
-struct gbm_device;
namespace ui {
-class DriWrapper;
+class GbmWrapper;
class GbmBuffer : public GbmBufferBase {
public:
static scoped_refptr<GbmBuffer> CreateBuffer(
- DriWrapper* dri,
- gbm_device* device,
+ GbmWrapper* gbm,
SurfaceFactoryOzone::BufferFormat format,
const gfx::Size& size,
bool scanout);
private:
- GbmBuffer(DriWrapper* dri, gbm_bo* bo, bool scanout);
+ GbmBuffer(GbmWrapper* gbm, gbm_bo* bo, bool scanout);
~GbmBuffer() override;
DISALLOW_COPY_AND_ASSIGN(GbmBuffer);
@@ -38,7 +36,7 @@ class GbmBuffer : public GbmBufferBase {
class GbmPixmap : public NativePixmap {
public:
GbmPixmap(scoped_refptr<GbmBuffer> buffer);
- bool Initialize(DriWrapper* dri);
+ bool Initialize(GbmWrapper* gbm);
// NativePixmap:
void* GetEGLClientBuffer() override;

Powered by Google App Engine
This is Rietveld 408576698