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

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

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_manager.h ('k') | ui/ozone/platform/dri/gbm.gypi » ('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.cc
diff --git a/ui/ozone/platform/dri/drm_device_manager.cc b/ui/ozone/platform/dri/drm_device_manager.cc
index 5bbfd94e9c06c38368e26389ce125a18c03044df..d04aee024efb0e3e6a9fcc6621a7725e9d5f864d 100644
--- a/ui/ozone/platform/dri/drm_device_manager.cc
+++ b/ui/ozone/platform/dri/drm_device_manager.cc
@@ -4,12 +4,12 @@
#include "ui/ozone/platform/dri/drm_device_manager.h"
-#include "ui/ozone/platform/dri/dri_wrapper.h"
+#include "ui/ozone/platform/dri/drm_device.h"
namespace ui {
DrmDeviceManager::DrmDeviceManager(
- const scoped_refptr<DriWrapper>& primary_device)
+ const scoped_refptr<DrmDevice>& primary_device)
: primary_device_(primary_device) {
}
@@ -17,9 +17,8 @@ DrmDeviceManager::~DrmDeviceManager() {
DCHECK(drm_device_map_.empty());
}
-void DrmDeviceManager::UpdateDrmDevice(
- gfx::AcceleratedWidget widget,
- const scoped_refptr<DriWrapper>& device) {
+void DrmDeviceManager::UpdateDrmDevice(gfx::AcceleratedWidget widget,
+ const scoped_refptr<DrmDevice>& device) {
base::AutoLock lock(lock_);
drm_device_map_[widget] = device;
}
@@ -31,7 +30,7 @@ void DrmDeviceManager::RemoveDrmDevice(gfx::AcceleratedWidget widget) {
drm_device_map_.erase(it);
}
-scoped_refptr<DriWrapper> DrmDeviceManager::GetDrmDevice(
+scoped_refptr<DrmDevice> DrmDeviceManager::GetDrmDevice(
gfx::AcceleratedWidget widget) {
base::AutoLock lock(lock_);
if (widget == gfx::kNullAcceleratedWidget)
« no previous file with comments | « ui/ozone/platform/dri/drm_device_manager.h ('k') | ui/ozone/platform/dri/gbm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698