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

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

Issue 758853005: Remove Initialize/Shutdown from DriSurfaceFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN Created 6 years 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/dri.gypi ('k') | ui/ozone/platform/dri/dri_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/dri_surface_factory.h
diff --git a/ui/ozone/platform/dri/dri_surface_factory.h b/ui/ozone/platform/dri/dri_surface_factory.h
index f1ba7ba5199264ce14f6b61a1e83efadb8fa67e9..f54d8cf3ed5474b151bbe66864ebe15cd346ad4d 100644
--- a/ui/ozone/platform/dri/dri_surface_factory.h
+++ b/ui/ozone/platform/dri/dri_surface_factory.h
@@ -19,24 +19,9 @@ class SurfaceOzoneCanvas;
// path.
class DriSurfaceFactory : public SurfaceFactoryOzone {
public:
- static const gfx::AcceleratedWidget kDefaultWidgetHandle;
-
DriSurfaceFactory(DriWrapper* drm, DriWindowDelegateManager* window_manager);
~DriSurfaceFactory() override;
- // Describes the state of the hardware after initialization.
- enum HardwareState {
- UNINITIALIZED,
- INITIALIZED,
- FAILED,
- };
-
- // Open the display device.
- HardwareState InitializeHardware();
-
- // Close the display device.
- void ShutdownHardware();
-
// SurfaceFactoryOzone:
scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
gfx::AcceleratedWidget widget) override;
@@ -45,10 +30,8 @@ class DriSurfaceFactory : public SurfaceFactoryOzone {
SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
protected:
-
DriWrapper* drm_; // Not owned.
DriWindowDelegateManager* window_manager_; // Not owned.
- HardwareState state_;
DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory);
};
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698