| 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/files/file_path.h" |
| 8 #include "base/macros.h" | 9 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 11 #include "ui/ozone/platform/dri/scoped_drm_types.h" | 12 #include "ui/ozone/platform/dri/scoped_drm_types.h" |
| 12 | 13 |
| 13 typedef struct _drmModeModeInfo drmModeModeInfo; | 14 typedef struct _drmModeModeInfo drmModeModeInfo; |
| 14 | 15 |
| 15 namespace ui { | 16 namespace ui { |
| 16 | 17 |
| 17 class DriWrapper; | 18 class DriWrapper; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 | 45 |
| 45 // Memory maps a DRM buffer. | 46 // Memory maps a DRM buffer. |
| 46 bool MapDumbBuffer(int fd, | 47 bool MapDumbBuffer(int fd, |
| 47 uint32_t handle, | 48 uint32_t handle, |
| 48 uint32_t size, | 49 uint32_t size, |
| 49 void** pixels); | 50 void** pixels); |
| 50 | 51 |
| 51 void ForceInitializationOfPrimaryDisplay(const scoped_refptr<DriWrapper>& drm, | 52 void ForceInitializationOfPrimaryDisplay(const scoped_refptr<DriWrapper>& drm, |
| 52 ScreenManager* screen_manager); | 53 ScreenManager* screen_manager); |
| 53 | 54 |
| 55 base::FilePath GetFirstDisplayCardPath(); |
| 56 |
| 54 } // namespace ui | 57 } // namespace ui |
| 55 | 58 |
| 56 #endif // UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ | 59 #endif // UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ |
| OLD | NEW |