| 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 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id); | 77 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id); |
| 78 | 78 |
| 79 // Register any format buffer with the CRTC. On successful registration, the | 79 // Register any format buffer with the CRTC. On successful registration, the |
| 80 // CRTC will assign a framebuffer ID to |framebuffer|. | 80 // CRTC will assign a framebuffer ID to |framebuffer|. |
| 81 virtual bool AddFramebuffer2(uint32_t width, | 81 virtual bool AddFramebuffer2(uint32_t width, |
| 82 uint32_t height, | 82 uint32_t height, |
| 83 uint32_t format, | 83 uint32_t format, |
| 84 uint32_t handles[4], | 84 uint32_t handles[4], |
| 85 uint32_t strides[4], | 85 uint32_t strides[4], |
| 86 uint32_t offsets[4], | 86 uint32_t offsets[4], |
| 87 uint64_t modifiers[4], |
| 87 uint32_t* framebuffer, | 88 uint32_t* framebuffer, |
| 88 uint32_t flags); | 89 uint32_t flags); |
| 89 | 90 |
| 90 // Deregister the given |framebuffer|. | 91 // Deregister the given |framebuffer|. |
| 91 virtual bool RemoveFramebuffer(uint32_t framebuffer); | 92 virtual bool RemoveFramebuffer(uint32_t framebuffer); |
| 92 | 93 |
| 93 // Get the DRM details associated with |framebuffer|. | 94 // Get the DRM details associated with |framebuffer|. |
| 94 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer); | 95 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer); |
| 95 | 96 |
| 96 // Schedules a pageflip for CRTC |crtc_id|. This function will return | 97 // Schedules a pageflip for CRTC |crtc_id|. This function will return |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 std::unique_ptr<IOWatcher> watcher_; | 204 std::unique_ptr<IOWatcher> watcher_; |
| 204 | 205 |
| 205 bool is_primary_device_; | 206 bool is_primary_device_; |
| 206 | 207 |
| 207 DISALLOW_COPY_AND_ASSIGN(DrmDevice); | 208 DISALLOW_COPY_AND_ASSIGN(DrmDevice); |
| 208 }; | 209 }; |
| 209 | 210 |
| 210 } // namespace ui | 211 } // namespace ui |
| 211 | 212 |
| 212 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 213 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
| OLD | NEW |