Index: ui/ozone/platform/drm/gpu/drm_device.h |
diff --git a/ui/ozone/platform/drm/gpu/drm_device.h b/ui/ozone/platform/drm/gpu/drm_device.h |
index 8130f549761642a8d7a0ed60cdbcfad2da122fcc..c56c4df96ea1d6acc930416ffa95939f26b9a269 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_device.h |
+++ b/ui/ozone/platform/drm/gpu/drm_device.h |
@@ -81,7 +81,8 @@ class OZONE_EXPORT DrmDevice : public base::RefCountedThreadSafe<DrmDevice> { |
// Returns the connector properties for |connector_id|. |
virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id); |
- // Register a buffer with the CRTC. On successful registration, the CRTC will |
+ // Register a RGB buffer with the CRTC. On successful registration, the CRTC |
+ // will |
// assign a framebuffer ID to |framebuffer|. |
virtual bool AddFramebuffer(uint32_t width, |
uint32_t height, |
@@ -91,6 +92,18 @@ class OZONE_EXPORT DrmDevice : public base::RefCountedThreadSafe<DrmDevice> { |
uint32_t handle, |
uint32_t* framebuffer); |
+ // Register any format buffer with the CRTC. On successful registration, the |
+ // CRTC will |
+ // assign a framebuffer ID to |framebuffer|. |
+ virtual bool AddFramebuffer2(uint32_t width, |
+ uint32_t height, |
+ uint32_t format, |
+ uint32_t handles[4], |
+ uint32_t strides[4], |
+ uint32_t offsets[4], |
+ uint32_t* framebuffer, |
+ uint32_t flags); |
+ |
// Deregister the given |framebuffer|. |
virtual bool RemoveFramebuffer(uint32_t framebuffer); |