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

Unified Diff: third_party/wayland-protocols/protocol/vsync-feedback-protocol.c

Issue 2350633002: third_party: Switch to zcr prefix for downstream wayland interfaces. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/wayland-protocols/protocol/vsync-feedback-protocol.c
diff --git a/third_party/wayland-protocols/protocol/vsync-feedback-protocol.c b/third_party/wayland-protocols/protocol/vsync-feedback-protocol.c
index df2a4b673cd2053101ef4d66ad4ea56660c3a993..2384d2bf9d43f28317f27253e167074851d4b1ee 100644
--- a/third_party/wayland-protocols/protocol/vsync-feedback-protocol.c
+++ b/third_party/wayland-protocols/protocol/vsync-feedback-protocol.c
@@ -28,6 +28,7 @@
#include "wayland-util.h"
extern const struct wl_interface wl_output_interface;
+extern const struct wl_interface zcr_vsync_timing_v1_interface;
extern const struct wl_interface zwp_vsync_timing_v1_interface;
static const struct wl_interface *types[] = {
@@ -35,15 +36,42 @@ static const struct wl_interface *types[] = {
NULL,
NULL,
NULL,
+ &zcr_vsync_timing_v1_interface,
+ &wl_output_interface,
&zwp_vsync_timing_v1_interface,
&wl_output_interface,
};
-static const struct wl_message zwp_vsync_feedback_v1_requests[] = {
+static const struct wl_message zcr_vsync_feedback_v1_requests[] = {
{ "destroy", "", types + 0 },
{ "get_vsync_timing", "n?o", types + 4 },
};
+WL_EXPORT const struct wl_interface zcr_vsync_feedback_v1_interface = {
+ "zcr_vsync_feedback_v1", 1,
+ 2, zcr_vsync_feedback_v1_requests,
+ 0, NULL,
+};
+
+static const struct wl_message zcr_vsync_timing_v1_requests[] = {
+ { "destroy", "", types + 0 },
+};
+
+static const struct wl_message zcr_vsync_timing_v1_events[] = {
+ { "update", "uuuu", types + 0 },
+};
+
+WL_EXPORT const struct wl_interface zcr_vsync_timing_v1_interface = {
+ "zcr_vsync_timing_v1", 1,
+ 1, zcr_vsync_timing_v1_requests,
+ 1, zcr_vsync_timing_v1_events,
+};
+
+static const struct wl_message zwp_vsync_feedback_v1_requests[] = {
+ { "destroy", "", types + 0 },
+ { "get_vsync_timing", "n?o", types + 6 },
+};
+
WL_EXPORT const struct wl_interface zwp_vsync_feedback_v1_interface = {
"zwp_vsync_feedback_v1", 1,
2, zwp_vsync_feedback_v1_requests,

Powered by Google App Engine
This is Rietveld 408576698