From 7ba50d80408080a94d605673efb5b870520dea87 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sat, 2 Mar 2019 17:25:22 +0000 Subject: vulkan/overlay: add no display option In case you're just interested in data being record to the output file. Signed-off-by: Lionel Landwerlin --- src/vulkan/overlay-layer/overlay_params.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vulkan/overlay-layer/overlay_params.c') diff --git a/src/vulkan/overlay-layer/overlay_params.c b/src/vulkan/overlay-layer/overlay_params.c index 51f85309574..16cf5b8dee0 100644 --- a/src/vulkan/overlay-layer/overlay_params.c +++ b/src/vulkan/overlay-layer/overlay_params.c @@ -53,6 +53,12 @@ parse_fps_sampling_period(const char *str) return strtol(str, NULL, 0) * 1000; } +static bool +parse_no_display(const char *str) +{ + return strtol(str, NULL, 0) != 0; +} + static bool parse_help(const char *str) { @@ -65,6 +71,7 @@ parse_help(const char *str) #undef OVERLAY_PARAM_CUSTOM fprintf(stderr, "\tposition=top-left|top-right|bottom-left|bottom-right\n"); fprintf(stderr, "\tfps_sampling_period=number-of-milliseconds\n"); + fprintf(stderr, "\tno_display=0|1\n"); return true; } -- cgit v1.2.3