OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ |
6 #define UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "ui/ozone/platform/dri/scoped_drm_types.h" | 10 #include "ui/ozone/platform/dri/scoped_drm_types.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 GetAvailableDisplayControllerInfos(int fd); | 37 GetAvailableDisplayControllerInfos(int fd); |
38 | 38 |
39 bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs); | 39 bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs); |
40 | 40 |
41 // Memory maps a DRM buffer. | 41 // Memory maps a DRM buffer. |
42 bool MapDumbBuffer(int fd, | 42 bool MapDumbBuffer(int fd, |
43 uint32_t handle, | 43 uint32_t handle, |
44 uint32_t size, | 44 uint32_t size, |
45 void** pixels); | 45 void** pixels); |
46 | 46 |
| 47 int OpenFirstDisplayCard(); |
| 48 |
47 } // namespace ui | 49 } // namespace ui |
48 | 50 |
49 #endif // UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ | 51 #endif // UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ |
OLD | NEW |