Commit 2346c3be authored by dongseong.hwang's avatar dongseong.hwang Committed by Commit bot

drm: remove unused constructor of DrmDevica and GbmDevice.

Review URL: https://codereview.chromium.org/1145193002

Cr-Commit-Position: refs/heads/master@{#330733}
parent fea4db61
......@@ -268,17 +268,6 @@ class DrmDevice::IOWatcher
DISALLOW_COPY_AND_ASSIGN(IOWatcher);
};
DrmDevice::DrmDevice(const base::FilePath& device_path)
: device_path_(device_path),
file_(device_path,
base::File::FLAG_OPEN | base::File::FLAG_READ |
base::File::FLAG_WRITE),
page_flip_manager_(new PageFlipManager()) {
LOG_IF(FATAL, !file_.IsValid())
<< "Failed to open '" << device_path_.value()
<< "': " << base::File::ErrorToString(file_.error_details());
}
DrmDevice::DrmDevice(const base::FilePath& device_path, base::File file)
: device_path_(device_path),
file_(file.Pass()),
......
......@@ -45,7 +45,6 @@ class OZONE_EXPORT DrmDevice : public base::RefCountedThreadSafe<DrmDevice> {
unsigned int /* seconds */,
unsigned int /* useconds */)> PageFlipCallback;
DrmDevice(const base::FilePath& device_path);
DrmDevice(const base::FilePath& device_path, base::File file);
// Open device.
......
......@@ -8,10 +8,6 @@
namespace ui {
GbmDevice::GbmDevice(const base::FilePath& device_path)
: DrmDevice(device_path), device_(nullptr) {
}
GbmDevice::GbmDevice(const base::FilePath& device_path, base::File file)
: DrmDevice(device_path, file.Pass()), device_(nullptr) {
}
......
......@@ -13,7 +13,6 @@ namespace ui {
class GbmDevice : public DrmDevice {
public:
GbmDevice(const base::FilePath& device_path);
GbmDevice(const base::FilePath& device_path, base::File file);
gbm_device* device() const { return device_; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment