diff --git a/gsk/gpu/gskgpuprint.c b/gsk/gpu/gskgpuprint.c index 6300376973..d81b376f2e 100644 --- a/gsk/gpu/gskgpuprint.c +++ b/gsk/gpu/gskgpuprint.c @@ -15,10 +15,17 @@ gsk_gpu_print_indent (GString *string, void gsk_gpu_print_shader_flags (GString *string, - GskGpuShaderFlags flags) + GskGpuShaderFlags flags, + gboolean first) { GskGpuShaderClip clip = gsk_gpu_shader_flags_get_clip (flags); + g_string_append (string, first ? "+ " : "| "); +#if 0 + g_string_append (string, first ? (last ? "⧫ " : "▲ ") + : (last ? "▼ " : "▮ ")); +#endif + switch (clip) { case GSK_GPU_SHADER_CLIP_NONE: diff --git a/gsk/gpu/gskgpuprintprivate.h b/gsk/gpu/gskgpuprintprivate.h index c8359d0b47..1fd2615e4f 100644 --- a/gsk/gpu/gskgpuprintprivate.h +++ b/gsk/gpu/gskgpuprintprivate.h @@ -18,7 +18,8 @@ void gsk_gpu_print_newline (GString void gsk_gpu_print_string (GString *string, const char *s); void gsk_gpu_print_shader_flags (GString *string, - GskGpuShaderFlags flags); + GskGpuShaderFlags flags, + gboolean first); void gsk_gpu_print_color_states (GString *string, GskGpuColorStates color_states); void gsk_gpu_print_enum (GString *string, diff --git a/gsk/gpu/gskgpushaderop.c b/gsk/gpu/gskgpushaderop.c index 874f533e10..34a70ef8ba 100644 --- a/gsk/gpu/gskgpushaderop.c +++ b/gsk/gpu/gskgpushaderop.c @@ -52,7 +52,7 @@ gsk_gpu_shader_op_print (GskGpuOp *op, for (i = 0; i < self->n_ops; i++) { gsk_gpu_print_op (string, indent, shader_name); - gsk_gpu_print_shader_flags (string, self->flags); + gsk_gpu_print_shader_flags (string, self->flags, i == 0); gsk_gpu_print_color_states (string, self->color_states); shader_class->print_instance (self, instance + i * shader_class->vertex_size,