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

Side by Side Diff: third_party/wayland-protocols/protocol/explicit-fencing-protocol.c

Issue 2404513002: exo: Implement zcr_linux_explicit_synchronization_v1
Patch Set: Created 4 years, 2 months 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
1 /* Generated by wayland-scanner 1.11.0 */ 1 /* Generated by wayland-scanner 1.11.90 */
2 2
3 /* 3 /*
4 * Copyright © 2013-2016 Collabora, Ltd. 4 * Copyright 2016 The Chromium Authors.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation 8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the 10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions: 11 * Software is furnished to do so, subject to the following conditions:
12 * 12 *
13 * The above copyright notice and this permission notice (including the next 13 * The above copyright notice and this permission notice (including the next
14 * paragraph) shall be included in all copies or substantial portions of the 14 * paragraph) shall be included in all copies or substantial portions of the
15 * Software. 15 * Software.
16 * 16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE. 23 * DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26 #include <stdlib.h> 26 #include <stdlib.h>
27 #include <stdint.h> 27 #include <stdint.h>
28 #include "wayland-util.h" 28 #include "wayland-util.h"
29 29
30 extern const struct wl_interface wl_surface_interface; 30 extern const struct wl_interface wl_surface_interface;
31 extern const struct wl_interface wp_viewport_interface; 31 extern const struct wl_interface zcr_explicit_fenced_surface_v1_interface;
32 32
33 static const struct wl_interface *types[] = { 33 static const struct wl_interface *types[] = {
34 NULL, 34 NULL,
35 » NULL, 35 » &zcr_explicit_fenced_surface_v1_interface,
36 » NULL,
37 » NULL,
38 » &wp_viewport_interface,
39 &wl_surface_interface, 36 &wl_surface_interface,
40 }; 37 };
41 38
42 static const struct wl_message wp_viewporter_requests[] = { 39 static const struct wl_message zcr_linux_explicit_fencing_v1_requests[] = {
43 { "destroy", "", types + 0 }, 40 { "destroy", "", types + 0 },
44 » { "get_viewport", "no", types + 4 }, 41 » { "get_fencing", "no", types + 1 },
45 }; 42 };
46 43
47 WL_EXPORT const struct wl_interface wp_viewporter_interface = { 44 WL_EXPORT const struct wl_interface zcr_linux_explicit_fencing_v1_interface = {
48 » "wp_viewporter", 1, 45 » "zcr_linux_explicit_fencing_v1", 1,
49 » 2, wp_viewporter_requests, 46 » 2, zcr_linux_explicit_fencing_v1_requests,
50 0, NULL, 47 0, NULL,
51 }; 48 };
52 49
53 static const struct wl_message wp_viewport_requests[] = { 50 static const struct wl_message zcr_explicit_fenced_surface_v1_requests[] = {
54 { "destroy", "", types + 0 }, 51 { "destroy", "", types + 0 },
55 » { "set_source", "ffff", types + 0 }, 52 » { "set_acquire_fence", "h", types + 0 },
56 » { "set_destination", "ii", types + 0 },
57 }; 53 };
58 54
59 WL_EXPORT const struct wl_interface wp_viewport_interface = { 55 static const struct wl_message zcr_explicit_fenced_surface_v1_events[] = {
60 » "wp_viewport", 1, 56 » { "present", "h", types + 0 },
61 » 3, wp_viewport_requests,
62 » 0, NULL,
63 }; 57 };
64 58
59 WL_EXPORT const struct wl_interface zcr_explicit_fenced_surface_v1_interface = {
60 "zcr_explicit_fenced_surface_v1", 1,
61 2, zcr_explicit_fenced_surface_v1_requests,
62 1, zcr_explicit_fenced_surface_v1_events,
63 };
64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698