DriWrapper(const char* device_path);
virtual ~DriWrapper();
+ // Open device.
+ virtual void Initialize();
+
// Get the CRTC state. This is generally used to save state before using the
// CRTC. When the user finishes using the CRTC, the user should restore the
// CRTC to it's initial state. Use |SetCrtc| to restore the state.
virtual bool DisableCrtc(uint32_t crtc_id);
+ // Returns the connector properties for |connector_id|.
+ virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id);
+
// Register a buffer with the CRTC. On successful registration, the CRTC will
// assign a framebuffer ID to |framebuffer|.
virtual bool AddFramebuffer(uint32_t width,
int fd_;
private:
+ // Path to DRM device.
+ const char* device_path_;
+
DISALLOW_COPY_AND_ASSIGN(DriWrapper);
};