- 20 Nov, 2014 1 commit
-
-
Alexander Larsson authored
This is required for the X backend GL integration. If the window has a height that is not a multiple of the window scale we can't properly do the y coordinate flipping that GL needs. Other backends can ignore this and use the default implementation. https://bugzilla.gnome.org/show_bug.cgi?id=739750
-
- 10 Nov, 2014 4 commits
-
-
Matthias Clasen authored
Add private API to set this per-display, and make the existing gdk_window_set_debug_update function set a global default.
-
Matthias Clasen authored
This is in preparation for making it runtime-settable in the inspector.
-
Javier Jardón authored
This is needed for cairo_set_device_scale()
-
Alexander Larsson authored
It seems in cairo 1.14 we need this after having painted an image surface to a X11 window surface (i.e. with GDK_RENDERING=image).
-
- 08 Nov, 2014 2 commits
-
-
Emmanuele Bassi authored
These are the last two global GDK symbols that have a libgtk_only suffix. https://bugzilla.gnome.org/show_bug.cgi?id=739781
-
Emmanuele Bassi authored
This allows us to use the GDK_PRIVATE_CALL macro inside gtk. https://bugzilla.gnome.org/show_bug.cgi?id=739781
-
- 07 Nov, 2014 1 commit
-
-
Matthias Clasen authored
This will be used in the inspector.
-
- 06 Nov, 2014 4 commits
-
-
Alexander Larsson authored
-
Alexander Larsson authored
If buffer age is undefined and the updated area is not the whole window then we use bit-blits instead of swap-buffers to end the frame. This allows us to not repaint the entire window unnecessarily if buffer_age is not supported, like e.g. with DRI2.
-
Alexander Larsson authored
This moves the GDK_ALWAYS_USE_GL env var to GDK_GL=always. It also changes GDK_DEBUG=nogl to GDK_GL=disable, as GDK_DEBUG is really only about debug loggin. It also adds some completely new flags: software-draw-gl: Always use software fallback for drawing gl content to a cairo_t. This disables the fastpaths that exist for drawing directly to a window and instead reads back the pixels into a cairo image surface. software-draw-surface: Always use software fallback for drawing cairo surfaces onto a gl-using window. This disables e.g. texture-from-pixmap on X11. software-draw: Enables both the above.
-
Alexander Larsson authored
If this is supported we avoid a lot of legacy baggage which we don't need.
-
- 30 Oct, 2014 1 commit
-
-
Alexander Larsson authored
-
- 28 Oct, 2014 5 commits
-
-
Matthias Clasen authored
Also found by valgrind.
-
Matthias Clasen authored
-
Matthias Clasen authored
That seems ... counterproductive.
-
Matthias Clasen authored
-
Jasper St. Pierre authored
Cursors should not be on a different display than their window / device, as that would break Wayland.
-
- 27 Oct, 2014 2 commits
-
-
Alexander Larsson authored
-
Alexander Larsson authored
This makes a lot more sense.
-
- 16 Oct, 2014 1 commit
-
-
Benjamin Otte authored
This is mostly useful for fallback testing. I suppose if people want finer grained GL ability testing, they can use Mesa environment variables to tune things.
-
- 15 Oct, 2014 1 commit
-
-
Matthias Clasen authored
We were leaking cairo regions every time we draw.
-
- 13 Oct, 2014 7 commits
-
-
Matthias Clasen authored
-
Alexander Larsson authored
Its not really reasonable to handle failures to make_current, it basically only happens if you pass invalid arguments to it, and thats not something we trap on similar things on the X drawing side. If GL is not supported that should be handled by the context creation failing, and anything going wrong after that is essentially a critical (or an async X error).
-
Alexander Larsson authored
We make user facing gl contexts not attached to a surface if possible, or attached to dummy surfaces. This means nothing can accidentally read/write to the toplevel back buffer.
-
Alexander Larsson authored
If this is set we always use GL to render each window, even if there are no GL widgets in the window.
-
Alexander Larsson authored
This adds the new type GdkGLContext that wraps an OpenGL context for a particular native window. It also adds support for the gdk paint machinery to use OpenGL to draw everything. As soon as anyone creates a GL context for a native window we create a "paint context" for that GdkWindow and switch to using GL for painting it. This commit contains only an implementation for X11 (using GLX). The way painting works is that all client gl contexts draw into offscreen buffers rather than directly to the back buffer, and the way something gets onto the window is by using gdk_cairo_draw_from_gl() to draw part of that buffer onto the draw cairo context. As a fallback (if we're doing redirected drawing or some effect like a cairo_push_group()) we read back the gl buffer into memory and composite using cairo. This means that GL rendering works in all cases, including rendering to a PDF. However, this is not particularly fast. In the *typical* case, where we're drawing directly to the window in the regular paint loop we hit the fast path. The fast path uses opengl to draw the buffer to the window back buffer, either by blitting or texturing. Then we track the region that was drawn, and when the draw ends we paint the normal cairo surface to the window (using texture-from-pixmap in the X11 case, or texture from cairo image otherwise) in the regions where there is no gl painted. There are some complexities wrt layering of gl and cairo areas though: * We track via gdk_window_mark_paint_from_clip() whenever gtk is painting over a region we previously rendered with opengl (flushed_region). This area (needs_blend_region) is blended rather than copied at the end of the frame. * If we're drawing a gl texture with alpha we first copy the current cairo_surface inside the target region to the back buffer before we blend over it. These two operations allow us full stacking of transparent gl and cairo regions.
-
Alexander Larsson authored
This is a new function that gets called every time we're drawing some area in the Gtk paint machinery. It is a no-op right now, but it will be required later to keep track of what areas which we previously rendered with GL was overwritten with cairo contents.
-
Alexander Larsson authored
First of all we track the current update area during an update in window->active_update_area. This will be used later in end_paint to know the damaged area. Secondly we keep track of old update areas for the last 2 frames. This will later allow us to reuse old framebuffer contents in double or tripple buffer setups, only painting what has changed since then.
-
- 12 Oct, 2014 1 commit
-
-
Benjamin Otte authored
We might want to remove support for it completely and always return FALSE.
-
- 06 Oct, 2014 3 commits
-
-
Jasper St. Pierre authored
-
Benjamin Otte authored
We were translating the clip region twice in that case. https://bugzilla.gnome.org/show_bug.cgi?id=737825
-
Benjamin Otte authored
... and remove all implementations. The API allows to not work "if the server doesn't support it. So from now on, no server does!
-
- 05 Oct, 2014 1 commit
-
-
Benjamin Otte authored
Parent is guaranteed to not be NULL. It can only ever be NULL for root windows and root windows cannot be created with gdk_window_new() and gdk_window_ensure_native() will exit early because they already are native. Also, both functions would crash a few lines below where parent gets dereferenced.
-
- 23 Sep, 2014 1 commit
-
-
Carlos Garnacho authored
If !owner_events, the pointer window has been usually set to NULL if the pointer fell outside the grabbing widget, but it was not being checked that the pointer_window is actually a child of the grab window, in which case it should be obtained as if ungrabbed. https://bugzilla.gnome.org/show_bug.cgi?id=735749
-
- 02 Sep, 2014 1 commit
-
-
Alexander Larsson authored
When recursing the update area down into native subwindows we forgot to apply the native window position. This caused us to repaint the wrong thing in certain cases. I noticed this when playing with the wip/gdk-gl branch, because it was triggering unnecessary repaints of the (native window) gl widgets.
-
- 26 Aug, 2014 2 commits
-
-
Ikey Doherty authored
https://bugzilla.gnome.org/show_bug.cgi?id=735301Signed-off-by:
Ikey Doherty <michael.i.doherty@intel.com>
-
Carlos Garnacho authored
This window type can only be used on wayland so far, so NULL is returned if it's attempted to be used on any other windowing backend. https://bugzilla.gnome.org/show_bug.cgi?id=729215
-
- 14 Jul, 2014 1 commit
-
-
Jasper St. Pierre authored
Some windows, like GtkWindow and some other apps, set a transparent background. The guarantee for begin_paint_region is that there should be a full clear to the specified background color, not a composite against what was there before. This fixes repaint artifacts in Wayland and Weston in a better way than 76922c16.
-
- 03 Jul, 2014 1 commit
-
-
Jasper St. Pierre authored
The resize grip code in GTK+ likes to call gdk_window_raise a lot. The unfortunate side effect of gdk_window_raise is that it queues an invalidation on the entire window, even if it's already the topmost child. Add a return value to gdk_window_raise_internal, and only queue the invalidation if the raise had an effect.
-