| 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_DRM_GPU_DRM_DEVICE_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/files/file.h" | 14 #include "base/files/file.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 19 #include "ui/gfx/geometry/rect_f.h" | 19 #include "ui/gfx/geometry/rect_f.h" |
| 20 #include "ui/gfx/overlay_transform.h" | 20 #include "ui/gfx/overlay_transform.h" |
| 21 #include "ui/ozone/platform/drm/common/scoped_drm_types.h" | 21 #include "ui/ozone/platform/drm/common/scoped_drm_types.h" |
| 22 #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager.h" | 22 #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager.h" |
| 23 | 23 |
| 24 typedef struct _drmEventContext drmEventContext; | 24 typedef struct _drmEventContext drmEventContext; |
| 25 typedef struct _drmModeModeInfo drmModeModeInfo; | 25 typedef struct _drmModeModeInfo drmModeModeInfo; |
| 26 | 26 |
| 27 struct SkImageInfo; | 27 struct SkImageInfo; |
| 28 | 28 |
| 29 namespace base { | |
| 30 class SingleThreadTaskRunner; | |
| 31 } // namespace base | |
| 32 | |
| 33 namespace ui { | 29 namespace ui { |
| 34 | 30 |
| 35 class HardwareDisplayPlaneManager; | 31 class HardwareDisplayPlaneManager; |
| 36 struct GammaRampRGBEntry; | 32 struct GammaRampRGBEntry; |
| 37 | 33 |
| 38 // Wraps DRM calls into a nice interface. Used to provide different | 34 // Wraps DRM calls into a nice interface. Used to provide different |
| 39 // implementations of the DRM calls. For the actual implementation the DRM API | 35 // implementations of the DRM calls. For the actual implementation the DRM API |
| 40 // would be called. In unit tests this interface would be stubbed. | 36 // would be called. In unit tests this interface would be stubbed. |
| 41 class DrmDevice : public base::RefCountedThreadSafe<DrmDevice> { | 37 class DrmDevice : public base::RefCountedThreadSafe<DrmDevice> { |
| 42 public: | 38 public: |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 std::unique_ptr<IOWatcher> watcher_; | 200 std::unique_ptr<IOWatcher> watcher_; |
| 205 | 201 |
| 206 bool is_primary_device_; | 202 bool is_primary_device_; |
| 207 | 203 |
| 208 DISALLOW_COPY_AND_ASSIGN(DrmDevice); | 204 DISALLOW_COPY_AND_ASSIGN(DrmDevice); |
| 209 }; | 205 }; |
| 210 | 206 |
| 211 } // namespace ui | 207 } // namespace ui |
| 212 | 208 |
| 213 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 209 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
| OLD | NEW |