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

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

Issue 908993003: [Ozone-Dri] Rename DriWrapper to DrmDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@udl3-pass-drm-fd
Patch Set: rebased Created 5 years, 10 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/drm_device_generator.cc ('k') | ui/ozone/platform/dri/drm_device_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/drm_device_manager.h
diff --git a/ui/ozone/platform/dri/drm_device_manager.h b/ui/ozone/platform/dri/drm_device_manager.h
index 03133abb105837fa14995d69d24ce2f8d909d03b..5a7431e2baf66ced4acafc0767f32cc45dbb2c92 100644
--- a/ui/ozone/platform/dri/drm_device_manager.h
+++ b/ui/ozone/platform/dri/drm_device_manager.h
@@ -14,28 +14,28 @@
namespace ui {
-class DriWrapper;
+class DrmDevice;
// Tracks the mapping between widgets and the DRM devices used to allocate
// buffers for the window represented by the widget.
class OZONE_EXPORT DrmDeviceManager {
public:
- DrmDeviceManager(const scoped_refptr<DriWrapper>& primary_device);
+ DrmDeviceManager(const scoped_refptr<DrmDevice>& primary_device);
~DrmDeviceManager();
// Updates the device associated with |widget|.
void UpdateDrmDevice(gfx::AcceleratedWidget widget,
- const scoped_refptr<DriWrapper>& device);
+ const scoped_refptr<DrmDevice>& device);
// Removes the device associated with |widget|.
void RemoveDrmDevice(gfx::AcceleratedWidget widget);
// Returns the device associated with |widget|. If there is no association
// returns |primary_device_|.
- scoped_refptr<DriWrapper> GetDrmDevice(gfx::AcceleratedWidget widget);
+ scoped_refptr<DrmDevice> GetDrmDevice(gfx::AcceleratedWidget widget);
private:
- std::map<gfx::AcceleratedWidget, scoped_refptr<DriWrapper>> drm_device_map_;
+ std::map<gfx::AcceleratedWidget, scoped_refptr<DrmDevice>> drm_device_map_;
// This device represents the primary graphics device and is used when:
// 1) 'widget == kNullAcceleratedWidget' when the API requesting a buffer has
@@ -43,7 +43,7 @@ class OZONE_EXPORT DrmDeviceManager {
// for video buffers), or
// 2) in order to allocate buffers for unmatched surfaces (surfaces without a
// display; ie: when in headless mode).
- scoped_refptr<DriWrapper> primary_device_;
+ scoped_refptr<DrmDevice> primary_device_;
// This class is accessed from the main thread and the IO thread. This lock
// protects access to the device map.
« no previous file with comments | « ui/ozone/platform/dri/drm_device_generator.cc ('k') | ui/ozone/platform/dri/drm_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698