1. 22 Oct, 2021 3 commits
  2. 20 Oct, 2021 3 commits
  3. 18 Oct, 2021 6 commits
  4. 17 Oct, 2021 2 commits
  5. 16 Oct, 2021 2 commits
  6. 15 Oct, 2021 2 commits
  7. 13 Oct, 2021 6 commits
    • Benjamin Otte's avatar
      gl: Refactor texture uploading · ddc4a40c
      Benjamin Otte authored
      Don't pass texture + rect, but instead have
        gdk_memory_texture_new_subtexture()
      and use it to generate subtextures and pass them.
      
      This has the advantage of downloading the a too large texture only once
      instead of N times.
      ddc4a40c
    • Benjamin Otte's avatar
      gltexture: Determine format in current thread · 52e88ed4
      Benjamin Otte authored
      Close widget-factory and observe:
      
      Thread 1:
       * acquire main loop
       * handle close button
       * close window
       * dispose video and media stream
       * stop GstPlayer
      WAIT on pipeline stopping
      
      Thread 2:
       * prepare next image in pipeline
       * hand image to GtkGstSink
       * create GdkTexture from image
       * gdk_gl_texture_new() determines format
      WAIT on acquiring main loop
      
      Sounds like a deadlock?
      
      Indeed, so don't do that.
      52e88ed4
    • Benjamin Otte's avatar
      gl: Move texture uploading to the renderer · 5199bebd
      Benjamin Otte authored
      It does not belong in GdkGLContext, it's a renderer thing.
      It's also the only user of that API.
      
      Introduce gdk_gl_context_check_version() private API to make version
      checks simpler.
      5199bebd
    • Benjamin Otte's avatar
      gl: Fix downloading textures *again* · 31e90729
      Benjamin Otte authored
      It turns out glReadPixels() cannot convert pixels and you are only
      allowed to pass a single value into the function arguments. You need to
      know which ones or things will explode.
      
      GL is great.
      31e90729
    • Benjamin Otte's avatar
      png: Refactor png saving · c2368cc6
      Benjamin Otte authored
      Do all the memory format shenanigans in GTK now and support all the PNG
      formats.
      c2368cc6
    • Benjamin Otte's avatar
      Add memory formats used by libpng · 1e7fb52b
      Benjamin Otte authored
      Add unpremultiplied high-depth formats. They are used in the real world,
      so let's support them.
      1e7fb52b
  8. 12 Oct, 2021 2 commits
    • Benjamin Otte's avatar
      png: Do loader conversions in GDK · 7b417389
      Benjamin Otte authored
      Not inside libpng.
      
      We really want to do them in GL, but we don't have a premultiply step
      yet.
      7b417389
    • Benjamin Otte's avatar
      texture: Refactor downloading · b65b6462
      Benjamin Otte authored
      Pass a format do GdkTextureClass::download(). That way we can download
      data in any format.
      
      Also replace gdk_texture_download_texture() with
      gdk_memory_texture_from_texture() which again takes a format.
      
      The old functionality is still there for code that wants it: Just pass
      gdk_texture_get_format (texture) as the format argument.
      b65b6462
  9. 11 Oct, 2021 5 commits
    • Emmanuele Bassi's avatar
      Add getter to GdkFileList · 086a3044
      Emmanuele Bassi authored
      Language bindings don't really have any mean of accessing the list of
      files for GdkFileList.
      086a3044
    • Bastien Nocera's avatar
      broadway: Quiet initialisation failures · fc32c19c
      Bastien Nocera authored
      Broadway is the only GTK+ backend that throws an error on stderr for a
      "display server" connection failure.
      
      This causes problems when gtk_init_check() is used and unexpected error
      output is generated such as with hotdoc, which fails when generating a
      GTK plugin's documentation instead of overlooking the issue.
      
      "Unable to init server: Could not connect: Connection refused"
      fc32c19c
    • Benjamin Otte's avatar
      x11: Don't try to move destroyed windows · f40ce51a
      Benjamin Otte authored
      Fixes BadWindow crashes when the resize happen right when tooltips or
      other such transient popups were in the process of being destroyed.
      f40ce51a
    • Bastien Nocera's avatar
      broadway: Quiet initialisation failures · e6ae3b8a
      Bastien Nocera authored
      Broadway is the only GTK+ backend that throws an error on stderr when
      failing to initialise, which causes problems when gtk_init_check() is
      used and unexpected error output is generated.
      
      This causes hotdoc to fail when generating a GTK plugin's documentation
      instead of failing quietly.
      
      "Unable to init server: Could not connect: Connection refused"
      e6ae3b8a
    • David Edmundson's avatar
      wayland: Mark opaque_region as dirty on hide · dc503897
      David Edmundson authored
      Otherwise if we hide and show a window we recreate a new surface,
      breaking the compositor's association, but potentially not resend this
      data for the new surface.
      This matches what we do for input_region.
      dc503897
  10. 09 Oct, 2021 4 commits
  11. 08 Oct, 2021 4 commits
  12. 07 Oct, 2021 1 commit
    • Matthias Clasen's avatar
      Rename ngl to gl · 144f727d
      Matthias Clasen authored
      We have only one gl renderer now, and it is
      a bit odd for it not be called gl.
      144f727d