mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
backends/screen-cast: Pass pixel format to DMA-BUF constructor
Following the previous commit, do the same function parameter treatment to meta_screen_cast_create_dma_buf_handle(). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3175>
This commit is contained in:
parent
b391ded7bf
commit
e24be82c12
@ -1061,6 +1061,7 @@ on_stream_add_buffer (void *data,
|
|||||||
{
|
{
|
||||||
dmabuf_handle =
|
dmabuf_handle =
|
||||||
meta_screen_cast_create_dma_buf_handle (screen_cast,
|
meta_screen_cast_create_dma_buf_handle (screen_cast,
|
||||||
|
COGL_PIXEL_FORMAT_BGRX_8888,
|
||||||
priv->video_format.size.width,
|
priv->video_format.size.width,
|
||||||
priv->video_format.size.height);
|
priv->video_format.size.height);
|
||||||
}
|
}
|
||||||
|
@ -59,9 +59,10 @@ meta_screen_cast_disable_dma_bufs (MetaScreenCast *screen_cast)
|
|||||||
}
|
}
|
||||||
|
|
||||||
CoglDmaBufHandle *
|
CoglDmaBufHandle *
|
||||||
meta_screen_cast_create_dma_buf_handle (MetaScreenCast *screen_cast,
|
meta_screen_cast_create_dma_buf_handle (MetaScreenCast *screen_cast,
|
||||||
int width,
|
CoglPixelFormat format,
|
||||||
int height)
|
int width,
|
||||||
|
int height)
|
||||||
{
|
{
|
||||||
MetaDbusSessionManager *session_manager =
|
MetaDbusSessionManager *session_manager =
|
||||||
META_DBUS_SESSION_MANAGER (screen_cast);
|
META_DBUS_SESSION_MANAGER (screen_cast);
|
||||||
@ -79,7 +80,7 @@ meta_screen_cast_create_dma_buf_handle (MetaScreenCast *screen_cast,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
dmabuf_handle = cogl_renderer_create_dma_buf (cogl_renderer,
|
dmabuf_handle = cogl_renderer_create_dma_buf (cogl_renderer,
|
||||||
COGL_PIXEL_FORMAT_BGRX_8888,
|
format,
|
||||||
width, height,
|
width, height,
|
||||||
&error);
|
&error);
|
||||||
if (!dmabuf_handle)
|
if (!dmabuf_handle)
|
||||||
|
@ -53,8 +53,9 @@ MetaBackend * meta_screen_cast_get_backend (MetaScreenCast *screen_cast);
|
|||||||
|
|
||||||
void meta_screen_cast_disable_dma_bufs (MetaScreenCast *screen_cast);
|
void meta_screen_cast_disable_dma_bufs (MetaScreenCast *screen_cast);
|
||||||
|
|
||||||
CoglDmaBufHandle * meta_screen_cast_create_dma_buf_handle (MetaScreenCast *screen_cast,
|
CoglDmaBufHandle * meta_screen_cast_create_dma_buf_handle (MetaScreenCast *screen_cast,
|
||||||
int width,
|
CoglPixelFormat format,
|
||||||
int height);
|
int width,
|
||||||
|
int height);
|
||||||
|
|
||||||
MetaScreenCast * meta_screen_cast_new (MetaBackend *backend);
|
MetaScreenCast * meta_screen_cast_new (MetaBackend *backend);
|
||||||
|
Loading…
Reference in New Issue
Block a user