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