[gtk/f16c.msvc: 1/61] gsk: Rename resource paths
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/f16c.msvc: 1/61] gsk: Rename resource paths
- Date: Mon, 12 Apr 2021 10:13:25 +0000 (UTC)
commit 7b1315bd2be10eeaef52e958eeca5f01900c494d
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 3 08:10:58 2021 -0400
gsk: Rename resource paths
Make the shaders of the gl renderer live under
/org/gtk/libgsk/gl. This is purely cosmetic.
gsk/gen-gsk-gresources-xml.py | 2 +-
gsk/gl/gskglrenderer.c | 36 ++++++++++++++++++------------------
2 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gsk/gen-gsk-gresources-xml.py b/gsk/gen-gsk-gresources-xml.py
index 16a2c4042a..404380e27b 100644
--- a/gsk/gen-gsk-gresources-xml.py
+++ b/gsk/gen-gsk-gresources-xml.py
@@ -45,7 +45,7 @@ xml = '''<?xml version='1.0' encoding='UTF-8'?>
'''
for f in gl_source_shaders:
- xml += ' <file alias=\'glsl/{0}\'>resources/glsl/{0}</file>\n'.format(os.path.basename(f))
+ xml += ' <file alias=\'gl/{0}\'>resources/glsl/{0}</file>\n'.format(os.path.basename(f))
xml += '\n'
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index a68b45e663..c72cedaeb4 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -3313,27 +3313,27 @@ gsk_gl_renderer_create_programs (GskGLRenderer *self,
const char *resource_path;
const char *name;
} program_definitions[] = {
- { "/org/gtk/libgsk/glsl/blend.glsl", "blend" },
- { "/org/gtk/libgsk/glsl/blit.glsl", "blit" },
- { "/org/gtk/libgsk/glsl/blur.glsl", "blur" },
- { "/org/gtk/libgsk/glsl/border.glsl", "border" },
- { "/org/gtk/libgsk/glsl/color_matrix.glsl", "color matrix" },
- { "/org/gtk/libgsk/glsl/color.glsl", "color" },
- { "/org/gtk/libgsk/glsl/coloring.glsl", "coloring" },
- { "/org/gtk/libgsk/glsl/cross_fade.glsl", "cross fade" },
- { "/org/gtk/libgsk/glsl/inset_shadow.glsl", "inset shadow" },
- { "/org/gtk/libgsk/glsl/linear_gradient.glsl", "linear gradient" },
- { "/org/gtk/libgsk/glsl/radial_gradient.glsl", "radial gradient" },
- { "/org/gtk/libgsk/glsl/conic_gradient.glsl", "conic gradient" },
- { "/org/gtk/libgsk/glsl/outset_shadow.glsl", "outset shadow" },
- { "/org/gtk/libgsk/glsl/repeat.glsl", "repeat" },
- { "/org/gtk/libgsk/glsl/unblurred_outset_shadow.glsl", "unblurred_outset shadow" },
+ { "/org/gtk/libgsk/gl/blend.glsl", "blend" },
+ { "/org/gtk/libgsk/gl/blit.glsl", "blit" },
+ { "/org/gtk/libgsk/gl/blur.glsl", "blur" },
+ { "/org/gtk/libgsk/gl/border.glsl", "border" },
+ { "/org/gtk/libgsk/gl/color_matrix.glsl", "color matrix" },
+ { "/org/gtk/libgsk/gl/color.glsl", "color" },
+ { "/org/gtk/libgsk/gl/coloring.glsl", "coloring" },
+ { "/org/gtk/libgsk/gl/cross_fade.glsl", "cross fade" },
+ { "/org/gtk/libgsk/gl/inset_shadow.glsl", "inset shadow" },
+ { "/org/gtk/libgsk/gl/linear_gradient.glsl", "linear gradient" },
+ { "/org/gtk/libgsk/gl/radial_gradient.glsl", "radial gradient" },
+ { "/org/gtk/libgsk/gl/conic_gradient.glsl", "conic gradient" },
+ { "/org/gtk/libgsk/gl/outset_shadow.glsl", "outset shadow" },
+ { "/org/gtk/libgsk/gl/repeat.glsl", "repeat" },
+ { "/org/gtk/libgsk/gl/unblurred_outset_shadow.glsl", "unblurred_outset shadow" },
};
gsk_gl_shader_builder_init (&shader_builder,
- "/org/gtk/libgsk/glsl/preamble.glsl",
- "/org/gtk/libgsk/glsl/preamble.vs.glsl",
- "/org/gtk/libgsk/glsl/preamble.fs.glsl");
+ "/org/gtk/libgsk/gl/preamble.glsl",
+ "/org/gtk/libgsk/gl/preamble.vs.glsl",
+ "/org/gtk/libgsk/gl/preamble.fs.glsl");
g_assert (G_N_ELEMENTS (program_definitions) == GL_N_PROGRAMS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]