Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: chromium_gensrc/egl/wayland/wayland-drm/wayland-drm-protocol.c

Issue 1419063004: Merge upstream version of wayland-drm.xml and include autogenerated files in chromium_gensrc. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/mesa.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright © 2008-2011 Kristian Høgsberg
3 * Copyright © 2010-2011 Intel Corporation
4 *
5 * Permission to use, copy, modify, distribute, and sell this
6 * software and its documentation for any purpose is hereby granted
7 * without fee, provided that\n the above copyright notice appear in
8 * all copies and that both that copyright notice and this permission
9 * notice appear in supporting documentation, and that the name of
10 * the copyright holders not be used in advertising or publicity
11 * pertaining to distribution of the software without specific,
12 * written prior permission. The copyright holders make no
13 * representations about the suitability of this software for any
14 * purpose. It is provided "as is" without express or implied
15 * warranty.
16 *
17 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
18 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
19 * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
21 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
22 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
23 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
24 * THIS SOFTWARE.
25 */
26
27 #include <stdlib.h>
28 #include <stdint.h>
29 #include "wayland-util.h"
30
31 extern const struct wl_interface wl_buffer_interface;
32 extern const struct wl_interface wl_buffer_interface;
33 extern const struct wl_interface wl_buffer_interface;
34
35 static const struct wl_interface *types[] = {
36 NULL,
37 &wl_buffer_interface,
38 NULL,
39 NULL,
40 NULL,
41 NULL,
42 NULL,
43 &wl_buffer_interface,
44 NULL,
45 NULL,
46 NULL,
47 NULL,
48 NULL,
49 NULL,
50 NULL,
51 NULL,
52 NULL,
53 NULL,
54 &wl_buffer_interface,
55 NULL,
56 NULL,
57 NULL,
58 NULL,
59 NULL,
60 NULL,
61 NULL,
62 NULL,
63 NULL,
64 NULL,
65 };
66
67 static const struct wl_message wl_drm_requests[] = {
68 { "authenticate", "u", types + 0 },
69 { "create_buffer", "nuiiuu", types + 1 },
70 { "create_planar_buffer", "nuiiuiiiiii", types + 7 },
71 { "create_prime_buffer", "2nhiiuiiiiii", types + 18 },
72 };
73
74 static const struct wl_message wl_drm_events[] = {
75 { "device", "s", types + 0 },
76 { "format", "u", types + 0 },
77 { "authenticated", "", types + 0 },
78 { "capabilities", "u", types + 0 },
79 };
80
81 WL_EXPORT const struct wl_interface wl_drm_interface = {
82 "wl_drm", 2,
83 4, wl_drm_requests,
84 4, wl_drm_events,
85 };
86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698