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

Unified Diff: ui/ozone/platform/drm/gpu/drm_util.h

Issue 1133053003: [Ozone-Drm] Move DRM utilities from gpu/ to common/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/drm/gpu/drm_gpu_display_manager.cc ('k') | ui/ozone/platform/drm/gpu/drm_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_util.h
diff --git a/ui/ozone/platform/drm/gpu/drm_util.h b/ui/ozone/platform/drm/gpu/drm_util.h
deleted file mode 100644
index 923072f953b6b662e5098254648cd5e70e4efa59..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/drm/gpu/drm_util.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_UTIL_H_
-#define UI_OZONE_PLATFORM_DRM_GPU_DRM_UTIL_H_
-
-#include "base/files/file_path.h"
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_vector.h"
-#include "ui/ozone/platform/drm/gpu/scoped_drm_types.h"
-
-typedef struct _drmModeModeInfo drmModeModeInfo;
-
-namespace ui {
-
-class DrmDevice;
-class ScreenManager;
-
-// Representation of the information required to initialize and configure a
-// native display.
-class HardwareDisplayControllerInfo {
- public:
- HardwareDisplayControllerInfo(ScopedDrmConnectorPtr connector,
- ScopedDrmCrtcPtr crtc);
- ~HardwareDisplayControllerInfo();
-
- drmModeConnector* connector() const { return connector_.get(); }
- drmModeCrtc* crtc() const { return crtc_.get(); }
-
- private:
- ScopedDrmConnectorPtr connector_;
- ScopedDrmCrtcPtr crtc_;
-
- DISALLOW_COPY_AND_ASSIGN(HardwareDisplayControllerInfo);
-};
-
-// Looks-up and parses the native display configurations returning all available
-// displays.
-ScopedVector<HardwareDisplayControllerInfo> GetAvailableDisplayControllerInfos(
- int fd);
-
-bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs);
-
-void ForceInitializationOfPrimaryDisplay(const scoped_refptr<DrmDevice>& drm,
- ScreenManager* screen_manager);
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_UTIL_H_
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc ('k') | ui/ozone/platform/drm/gpu/drm_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698