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

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

Issue 1311043016: Switch DRM platform to using a separate thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread2
Patch Set: update & fix clang Created 5 years, 2 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_buffer.h ('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 abfcc272960f866dd526ba31dda846257f71f7e2..235ab217fa2cdab85267b5c57f182b61177b3a35 100644
--- a/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
+++ b/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
@@ -12,25 +12,20 @@
namespace ui {
-class DrmDeviceManager;
-class DrmWindow;
+class DrmThreadProxy;
class GbmDevice;
class GbmSurfaceless;
-class ScreenManager;
class GbmSurfaceFactory : public SurfaceFactoryOzone {
public:
- GbmSurfaceFactory();
+ GbmSurfaceFactory(DrmThreadProxy* drm_thread);
~GbmSurfaceFactory() override;
- void InitializeGpu(DrmDeviceManager* drm_device_manager,
- ScreenManager* screen_manager);
-
void RegisterSurface(gfx::AcceleratedWidget widget, GbmSurfaceless* surface);
void UnregisterSurface(gfx::AcceleratedWidget widget);
GbmSurfaceless* GetSurface(gfx::AcceleratedWidget widget) const;
- // DrmSurfaceFactory:
+ // SurfaceFactoryOzone:
intptr_t GetNativeDisplay() override;
const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override;
bool LoadEGLGLES2Bindings(
@@ -49,13 +44,10 @@ class GbmSurfaceFactory : public SurfaceFactoryOzone {
gfx::BufferUsage usage) override;
private:
- scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget);
-
- DrmDeviceManager* drm_device_manager_; // Not owned.
- ScreenManager* screen_manager_; // Not owned.
-
base::ThreadChecker thread_checker_;
+ DrmThreadProxy* drm_thread_;
+
std::map<gfx::AcceleratedWidget, GbmSurfaceless*> widget_to_surface_map_;
DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.h ('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