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

Unified Diff: ui/ozone/platform/dri/gbm_surface_factory.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_surface.cc ('k') | ui/ozone/platform/dri/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/dri/gbm_surface_factory.h
diff --git a/ui/ozone/platform/dri/gbm_surface_factory.h b/ui/ozone/platform/dri/gbm_surface_factory.h
index 92af6a9d393bcf8e9a92509b51379fdcd61924a9..2a95a5cb38486999944382cea944cd3bf491726b 100644
--- a/ui/ozone/platform/dri/gbm_surface_factory.h
+++ b/ui/ozone/platform/dri/gbm_surface_factory.h
@@ -7,12 +7,11 @@
#include "ui/ozone/platform/dri/dri_surface_factory.h"
-struct gbm_device;
-
namespace ui {
class DriWindowDelegate;
class DriWindowDelegateManager;
+class GbmWrapper;
class ScreenManager;
class GbmSurfaceFactory : public DriSurfaceFactory {
@@ -20,8 +19,7 @@ class GbmSurfaceFactory : public DriSurfaceFactory {
GbmSurfaceFactory(bool allow_surfaceless);
~GbmSurfaceFactory() override;
- void InitializeGpu(DriWrapper* dri,
- gbm_device* device,
+ void InitializeGpu(GbmWrapper* gbm,
ScreenManager* screen_manager,
DriWindowDelegateManager* window_manager);
@@ -55,8 +53,8 @@ class GbmSurfaceFactory : public DriSurfaceFactory {
private:
DriWindowDelegate* GetOrCreateWindowDelegate(gfx::AcceleratedWidget widget);
+ GbmWrapper* gbm_; // Not owned.
ScreenManager* screen_manager_; // Not owned.
- gbm_device* device_; // Not owned.
bool allow_surfaceless_;
DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface.cc ('k') | ui/ozone/platform/dri/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698