profile/ivi/qtwayland.git
13 years agoWayland: split GL code into separate files
Jesse Barnes [Mon, 8 Nov 2010 20:24:09 +0000 (12:24 -0800)]
Wayland: split GL code into separate files

For clarity and to prevent merge conflicts etc. in future.

13 years agoWayland: use correct viewport for swapBuffers and correct coords
Jesse Barnes [Thu, 28 Oct 2010 23:18:15 +0000 (16:18 -0700)]
Wayland: use correct viewport for swapBuffers and correct coords

We're drawing into the parent, so we need to use the parent's geometry
for the GL viewport, or we may not be able to draw it.  We also need to
use the parent width & height when checking whether to normalize to 1.0
or -1.0 in the coord transform calculations.

13 years agoWayland: fix geometry of swapBuffers
Jesse Barnes [Thu, 28 Oct 2010 18:15:04 +0000 (11:15 -0700)]
Wayland: fix geometry of swapBuffers

If the geometry isn't mapped 1:1 we need to divide the bottom by height,
not width, to calculate the texture rectangle.

13 years agoWayland: clean up swapBuffers code
Jesse Barnes [Thu, 28 Oct 2010 18:13:13 +0000 (11:13 -0700)]
Wayland: clean up swapBuffers code

Pull the swap fbo and rbo into the context and make sure to destroy them
when the context goes away.  Add unfortunate lazy allocation of the fbo
and rbo because we need them to be part of the right context.

13 years agoWayland: add GL widget support
Jesse Barnes [Wed, 27 Oct 2010 22:01:38 +0000 (15:01 -0700)]
Wayland: add GL widget support

Make sure we copy from the private surface into the parent surface at
swapBuffers time.

13 years agoWayland: set parent window pointer in setParent()
Jesse Barnes [Wed, 27 Oct 2010 21:49:16 +0000 (14:49 -0700)]
Wayland: set parent window pointer in setParent()

We'll need this to handle GL widgets.

13 years agoWayland: render to a texture, not a renderbuffer
Jesse Barnes [Wed, 27 Oct 2010 21:44:04 +0000 (14:44 -0700)]
Wayland: render to a texture, not a renderbuffer

This will let us source from offscreen GL widget surfaces and copy into
the parent surface.

13 years agoWayland: put context & drawing objects into the drm surface
Jesse Barnes [Wed, 27 Oct 2010 21:38:03 +0000 (14:38 -0700)]
Wayland: put context & drawing objects into the drm surface

Even GL widgets will allocate window surfaces, so share everything
there.  This still leaves a hole when we mix GL widgets and the raster
back end (the created platform GL context won't have a DRM buffer to use
for its objects & context), but that won't work right now anyway...

13 years agoWayland: add partial GL widget support
Jesse Barnes [Mon, 25 Oct 2010 18:38:29 +0000 (11:38 -0700)]
Wayland: add partial GL widget support

GL widgets need a platform GL context.  Add one to get hellogl_es2
limping along.

13 years agoWayland: add waylandgl platform type
Jesse Barnes [Mon, 25 Oct 2010 18:36:45 +0000 (11:36 -0700)]
Wayland: add waylandgl platform type

This will set mUseOpenGL when -platform waylandgl is passed to clients.

13 years agoWayland: silence unused variable warnings in qwaylandinputdevice.cpp
Jesse Barnes [Fri, 22 Oct 2010 21:00:08 +0000 (14:00 -0700)]
Wayland: silence unused variable warnings in qwaylandinputdevice.cpp

13 years agoWayland: add GL drawing support
Jesse Barnes [Fri, 22 Oct 2010 17:31:03 +0000 (10:31 -0700)]
Wayland: add GL drawing support

Works with analogclock, draws upside down, fails to resize, and doesn't
show GL widget with hello_es2.

13 years agoWayland: misc cleanups
Jesse Barnes [Fri, 22 Oct 2010 17:30:27 +0000 (10:30 -0700)]
Wayland: misc cleanups

Unused variables, debug output.

13 years agoIntroduce drm wayland buffer
Kristian Høgsberg [Fri, 15 Oct 2010 01:25:15 +0000 (21:25 -0400)]
Introduce drm wayland buffer

13 years agoInitialize EGL
Kristian Høgsberg [Thu, 14 Oct 2010 19:36:59 +0000 (15:36 -0400)]
Initialize EGL

13 years agoCursors, keyboard support, move/resize
Kristian Høgsberg [Fri, 8 Oct 2010 20:02:01 +0000 (16:02 -0400)]
Cursors, keyboard support, move/resize

13 years agoUse QImage::Format_ARGB32_Premultiplied for the surface
Kristian Høgsberg [Thu, 7 Oct 2010 21:07:59 +0000 (17:07 -0400)]
Use QImage::Format_ARGB32_Premultiplied for the surface

13 years agowayland: Track the QWaylandWindow in the input device instead of the surface
Kristian Høgsberg [Thu, 7 Oct 2010 16:23:14 +0000 (12:23 -0400)]
wayland: Track the QWaylandWindow in the input device instead of the surface

The surface is destroyed when the window is hidden, so we can't use that
for looking up the widget to send events to.

13 years agowayland: Assign a window id to wayland windows
Kristian Høgsberg [Thu, 7 Oct 2010 15:47:08 +0000 (11:47 -0400)]
wayland: Assign a window id to wayland windows

13 years agowayland: Create and destroy surface at show and hide
Kristian Høgsberg [Thu, 7 Oct 2010 15:46:13 +0000 (11:46 -0400)]
wayland: Create and destroy surface at show and hide

13 years agowayland: Split input device out to its own file
Kristian Høgsberg [Thu, 7 Oct 2010 14:54:39 +0000 (10:54 -0400)]
wayland: Split input device out to its own file

13 years agoAdd wayland lighthouse plugin start
Kristian Høgsberg [Thu, 7 Oct 2010 01:51:23 +0000 (21:51 -0400)]
Add wayland lighthouse plugin