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

Unified Diff: ui/ozone/platform/dri/gbm_wrapper.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/gbm_wrapper.h ('k') | ui/ozone/platform/dri/hardware_display_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/gbm_wrapper.cc
diff --git a/ui/ozone/platform/dri/gbm_wrapper.cc b/ui/ozone/platform/dri/gbm_wrapper.cc
deleted file mode 100644
index e0d1f17ddc623ce8f8839caa95637838751d841b..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/gbm_wrapper.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/ozone/platform/dri/gbm_wrapper.h"
-
-#include <gbm.h>
-
-namespace ui {
-
-GbmWrapper::GbmWrapper(const base::FilePath& device_path)
- : DriWrapper(device_path), device_(nullptr) {
-}
-
-GbmWrapper::GbmWrapper(const base::FilePath& device_path, base::File file)
- : DriWrapper(device_path, file.Pass()), device_(nullptr) {
-}
-
-GbmWrapper::~GbmWrapper() {
- if (device_)
- gbm_device_destroy(device_);
-}
-
-bool GbmWrapper::Initialize() {
- if (!DriWrapper::Initialize())
- return false;
-
- device_ = gbm_create_device(get_fd());
- if (!device_) {
- LOG(ERROR) << "Unable to initialize GBM";
- return false;
- }
-
- return true;
-}
-
-} // namespace ui
« no previous file with comments | « ui/ozone/platform/dri/gbm_wrapper.h ('k') | ui/ozone/platform/dri/hardware_display_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698