1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
4
* Copyright (C) 2016 Red Hat Inc.
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2 of the
9
* License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
* Jonas Ådahl <jadahl@gmail.com>
25
#ifndef META_WAYLAND_EGL_STREAM_H
26
#define META_WAYLAND_EGL_STREAM_H
29
#include <glib-object.h>
31
#include "cogl/cogl.h"
32
#include "wayland/meta-wayland-types.h"
34
#define META_TYPE_WAYLAND_EGL_STREAM (meta_wayland_egl_stream_get_type ())
35
G_DECLARE_FINAL_TYPE (MetaWaylandEglStream, meta_wayland_egl_stream,
36
META, WAYLAND_EGL_STREAM, GObject);
38
gboolean meta_wayland_is_egl_stream_buffer (MetaWaylandBuffer *buffer);
40
MetaWaylandEglStream * meta_wayland_egl_stream_new (MetaWaylandBuffer *buffer,
43
gboolean meta_wayland_egl_stream_attach (MetaWaylandEglStream *stream,
46
CoglTexture2D * meta_wayland_egl_stream_create_texture (MetaWaylandEglStream *stream,
48
CoglSnippet * meta_wayland_egl_stream_create_snippet (void);
50
gboolean meta_wayland_egl_stream_is_y_inverted (MetaWaylandEglStream *stream);
52
#endif /* META_WAYLAND_EGL_STREAM_H */