1. 01 Nov, 2016 1 commit
  2. 25 Apr, 2016 4 commits
    • Emmanuele Bassi's avatar
      gl: Use a uniform to flip R and B colors on GLES · f848450a
      Emmanuele Bassi authored
      This allows us to decide when the R and B color channels should be
      flipped with a much better granularity.
      For instance, when using GLX_EXT_texture_from_pixmap to create a GL
      texture from a surface we don't need to swap the R and B channels, as
      the internal representation of the texture data will already have the
      appropriate colors.
      We also don't need to flip color channels when blitting from a texture.
    • Emmanuele Bassi's avatar
      gl: Tweak the swizzle for GLES texture fragments · fe25ba3c
      Emmanuele Bassi authored
      Cairo surfaces are in BGRA format, but we upload them as RGBA buffers on
      GLES; this means that the R and B channels are flipped in the texture
      Instead of doing a costly channel flip before putting them on the GPU,
      we can flip the values inside the GLSL shader we use specifically for
    • Emmanuele Bassi's avatar
      gdk: Add GLES shaders · 8bb4eb55
      Emmanuele Bassi authored
      We cannot use GL shaders with GLES.
    • Emmanuele Bassi's avatar
      gdk: Move GLSL shaders into GResource · 55537ccc
      Emmanuele Bassi authored
      Having the shaders inlined as C strings makes them harder to edit and