profile/ivi/qtwayland.git
13 years agoMake Qt-Compositor conform to Wayland api changes
Jørgen Lind [Thu, 14 Apr 2011 06:57:36 +0000 (08:57 +0200)]
Make Qt-Compositor conform to Wayland api changes

Frame callback needs a surface

13 years agoAdjust the README
Jørgen Lind [Mon, 11 Apr 2011 14:21:45 +0000 (16:21 +0200)]
Adjust the README

13 years agoUpdate readme with mac specifics
Jørgen Lind [Mon, 11 Apr 2011 13:41:57 +0000 (15:41 +0200)]
Update readme with mac specifics

13 years agoMake it possible to build Qt-Compositor without gl support
Jørgen Lind [Mon, 11 Apr 2011 13:37:36 +0000 (15:37 +0200)]
Make it possible to build Qt-Compositor without gl support

even when Qt is built with QtOpenGL

13 years agoAdd a custom rule for hardware_integration
Jørgen Lind [Mon, 11 Apr 2011 12:50:47 +0000 (14:50 +0200)]
Add a custom rule for hardware_integration

This enables the compositor pro file to include another pri file which
implements the hardware integration

13 years agoMake Qt-Compositor build the xcomposite backend as default
Jørgen Lind [Mon, 11 Apr 2011 12:00:15 +0000 (14:00 +0200)]
Make Qt-Compositor build the xcomposite backend as default

when Qt is built with opengl. Other plugins can be set by defining the
environment variable: QT_WAYLAND_GL_CONFIG

13 years agoPrevent accessing destroyed WaylandSurface in WaylandSurfaceItem.
Samuel Rødal [Fri, 8 Apr 2011 11:05:03 +0000 (13:05 +0200)]
Prevent accessing destroyed WaylandSurface in WaylandSurfaceItem.

13 years agoAdd the egl xcomposite extension
Jørgen Lind [Thu, 7 Apr 2011 16:05:02 +0000 (18:05 +0200)]
Add the egl xcomposite extension

13 years agoadd missing \n in debug output
Harald Fernengel [Wed, 6 Apr 2011 12:13:11 +0000 (14:13 +0200)]
add missing \n in debug output

13 years agoRemove glesv2 pkg-config config. We should pick this up
Jørgen Lind [Wed, 6 Apr 2011 10:55:29 +0000 (12:55 +0200)]
Remove glesv2 pkg-config config. We should pick this up

with QtOpenGL

13 years agoFixup to 35e6608ce14d05973c6ceee4c2ee046d10af4aaf
Jørgen Lind [Wed, 6 Apr 2011 10:54:52 +0000 (12:54 +0200)]
Fixup to 35e6608ce14d05973c6ceee4c2ee046d10af4aaf

13 years agoSet the rpath
Harald Fernengel [Wed, 6 Apr 2011 10:53:58 +0000 (12:53 +0200)]
Set the rpath

Wayland is currently instaled in non-standard dirs, so set the rpath if
the system supports rpath.

Reviewed-By: Jørgen Lind
13 years agoAdd XComposite extension to wayland
Jørgen Lind [Wed, 6 Apr 2011 08:10:12 +0000 (10:10 +0200)]
Add XComposite extension to wayland

13 years agoUpdate according to latest changes to QSGTextureProvider.
Samuel Rødal [Tue, 5 Apr 2011 13:57:44 +0000 (15:57 +0200)]
Update according to latest changes to QSGTextureProvider.

13 years agoDo a delayed map in Wayland::Surface if needed.
Samuel Rødal [Tue, 5 Apr 2011 13:48:15 +0000 (15:48 +0200)]
Do a delayed map in Wayland::Surface if needed.

13 years agoDon't emit mapped until the surface is actually mapped.
Samuel Rødal [Tue, 5 Apr 2011 08:12:00 +0000 (10:12 +0200)]
Don't emit mapped until the surface is actually mapped.

Buffers might be attached without the surface ever being mapped.

13 years agoMake it possible to create WaylandSurfaceItem from QML
Paul Olav Tvete [Fri, 1 Apr 2011 15:10:46 +0000 (17:10 +0200)]
Make it possible to create WaylandSurfaceItem from QML

Rev-by: Samuel
13 years agoProperly handle surface resizes in QML compositor.
Samuel Rødal [Fri, 1 Apr 2011 12:07:54 +0000 (14:07 +0200)]
Properly handle surface resizes in QML compositor.

13 years agoSome tweaks to WaylandSurfaceItem API.
Samuel Rødal [Fri, 1 Apr 2011 11:41:33 +0000 (13:41 +0200)]
Some tweaks to WaylandSurfaceItem API.

Send mouse events regardless of focus.

13 years agoRemove debugging from compositor_api.pri
Samuel Rødal [Fri, 1 Apr 2011 11:39:01 +0000 (13:39 +0200)]
Remove debugging from compositor_api.pri

13 years agoMove WaylandSurfaceItem into common API.
Samuel Rødal [Fri, 1 Apr 2011 11:28:39 +0000 (13:28 +0200)]
Move WaylandSurfaceItem into common API.

13 years agoUse QSGPlainTexture::setImage() instead of generating our own texture.
Samuel Rødal [Fri, 1 Apr 2011 08:26:26 +0000 (10:26 +0200)]
Use QSGPlainTexture::setImage() instead of generating our own texture.

Takes care of swizzling based on whether we're on GL ES or not.

13 years agoUpdate compositor to reflect latest changes in qtquick2.
Samuel Rødal [Thu, 31 Mar 2011 15:01:20 +0000 (17:01 +0200)]
Update compositor to reflect latest changes in qtquick2.

13 years agoqwidget-compositor:Make raster default
Jørgen Lind [Thu, 24 Mar 2011 14:34:21 +0000 (15:34 +0100)]
qwidget-compositor:Make raster default

13 years agoAdded texture accessor to WaylandSurface even in the case of no GL.
Samuel Rødal [Thu, 24 Mar 2011 10:56:14 +0000 (11:56 +0100)]
Added texture accessor to WaylandSurface even in the case of no GL.

Just return 0, so that compositors don't have to be rewritten when the
backend only supports SHM surfaces.

13 years agoAdd destroyClientForSurface() method
Paul Olav Tvete [Wed, 23 Mar 2011 08:31:00 +0000 (09:31 +0100)]
Add destroyClientForSurface() method

13 years agoAdding destination directory for wayland build
Jørgen Lind [Tue, 22 Mar 2011 11:49:23 +0000 (12:49 +0100)]
Adding destination directory for wayland build

13 years agoFix how wayland is compiled so that we can pick up libffi from
Jørgen Lind [Tue, 22 Mar 2011 11:13:29 +0000 (12:13 +0100)]
Fix how wayland is compiled so that we can pick up libffi from

pkg-config

13 years agoWorkaround for qmake problem
Paul Olav Tvete [Mon, 21 Mar 2011 13:49:07 +0000 (14:49 +0100)]
Workaround for qmake problem

13 years agoSmarter zooming when not all rows in the layout are used.
Samuel Rødal [Mon, 21 Mar 2011 08:07:25 +0000 (09:07 +0100)]
Smarter zooming when not all rows in the layout are used.

13 years agoMade compositor keep track of key / pointer focus surfaces.
Samuel Rødal [Mon, 21 Mar 2011 07:53:27 +0000 (08:53 +0100)]
Made compositor keep track of key / pointer focus surfaces.

Puts less burden on the implementation to make sure the input focus is
cleared when a surface is destroyed.

13 years agoMoved some files around.
Jørgen Lind [Fri, 18 Mar 2011 15:51:59 +0000 (16:51 +0100)]
Moved some files around.

I'm hoping that this will give some clearer structure

13 years agoAdded animation to QML compositor when window is destroyed.
Samuel Rødal [Fri, 18 Mar 2011 13:48:34 +0000 (14:48 +0100)]
Added animation to QML compositor when window is destroyed.

13 years agoGet rid of QML errors when destroying a window.
Samuel Rødal [Fri, 18 Mar 2011 09:50:49 +0000 (10:50 +0100)]
Get rid of QML errors when destroying a window.

13 years agoAdded window title and made contrast-lowering effect a bit more subtle.
Samuel Rødal [Thu, 17 Mar 2011 16:32:06 +0000 (17:32 +0100)]
Added window title and made contrast-lowering effect a bit more subtle.

13 years agoAdd readme
Jørgen Lind [Thu, 17 Mar 2011 15:59:50 +0000 (16:59 +0100)]
Add readme

13 years agoIf we use pkg-config we prob don't want to use the internal
Jørgen Lind [Thu, 17 Mar 2011 08:39:29 +0000 (09:39 +0100)]
If we use pkg-config we prob don't want to use the internal

copy of wayland but a version we pick up with pkg-config

13 years agoImproved blending in QML compositor.
Samuel Rødal [Wed, 16 Mar 2011 14:35:09 +0000 (15:35 +0100)]
Improved blending in QML compositor.

13 years agoProper handling of transparency.
Samuel Rødal [Wed, 16 Mar 2011 13:07:37 +0000 (14:07 +0100)]
Proper handling of transparency.

13 years agoFixed wrong coordinates sent for button press events.
Samuel Rødal [Wed, 16 Mar 2011 11:29:12 +0000 (12:29 +0100)]
Fixed wrong coordinates sent for button press events.

13 years agoRemove unnecessary output.
Samuel Rødal [Wed, 16 Mar 2011 08:40:41 +0000 (09:40 +0100)]
Remove unnecessary output.

13 years agoBetter layouting behavior when window is removed.
Samuel Rødal [Wed, 16 Mar 2011 08:35:54 +0000 (09:35 +0100)]
Better layouting behavior when window is removed.

13 years agoLower contrast of out-of-focus applications in QML compositor.
Samuel Rødal [Wed, 16 Mar 2011 07:36:00 +0000 (08:36 +0100)]
Lower contrast of out-of-focus applications in QML compositor.

13 years agoBetter layouting system in QML compositor.
Samuel Rødal [Tue, 15 Mar 2011 20:06:50 +0000 (21:06 +0100)]
Better layouting system in QML compositor.

13 years agoAdded keyboard input to QML compositor.
Samuel Rødal [Tue, 15 Mar 2011 17:11:56 +0000 (18:11 +0100)]
Added keyboard input to QML compositor.

13 years agoAdded proper removing of windows in QML compositor.
Samuel Rødal [Tue, 15 Mar 2011 16:44:15 +0000 (17:44 +0100)]
Added proper removing of windows in QML compositor.

13 years agoAdded initial scene-graph qml based compositor.
Samuel Rødal [Tue, 15 Mar 2011 13:42:19 +0000 (14:42 +0100)]
Added initial scene-graph qml based compositor.

13 years agoMake configuration of Qt-Compositor easier to understand
Jørgen Lind [Tue, 15 Mar 2011 12:54:08 +0000 (13:54 +0100)]
Make configuration of Qt-Compositor easier to understand

13 years agoImprove WaylandSurface input interface a bit.
Samuel Rødal [Tue, 15 Mar 2011 12:47:34 +0000 (13:47 +0100)]
Improve WaylandSurface input interface a bit.

13 years agoMake WaylandSurface a QObject to have a signal API.
Samuel Rødal [Tue, 15 Mar 2011 11:11:34 +0000 (12:11 +0100)]
Make WaylandSurface a QObject to have a signal API.

13 years agoGet rid of unused variable warnings.
Samuel Rødal [Tue, 15 Mar 2011 09:52:40 +0000 (10:52 +0100)]
Get rid of unused variable warnings.

13 years agoAlways do full updates when using GL.
Samuel Rødal [Tue, 15 Mar 2011 09:49:02 +0000 (10:49 +0100)]
Always do full updates when using GL.

13 years agoSimplify example compositor by using surface pointer instead of index.
Samuel Rødal [Mon, 14 Mar 2011 16:57:28 +0000 (17:57 +0100)]
Simplify example compositor by using surface pointer instead of index.

13 years agoUse Factory for GraphicsHardwareIntegration
Jørgen Lind [Mon, 14 Mar 2011 11:46:53 +0000 (12:46 +0100)]
Use Factory for GraphicsHardwareIntegration

13 years agoAdd WaylandSurface class
Jørgen Lind [Mon, 14 Mar 2011 11:22:09 +0000 (12:22 +0100)]
Add WaylandSurface class

This class is intended to be used when implementing a compositor

13 years agoDon't break the non-GL case
Paul Olav Tvete [Fri, 11 Mar 2011 16:09:24 +0000 (17:09 +0100)]
Don't break the non-GL case

13 years agoAdd a factory function for creating GraphicsHardwareIntegration
Paul Olav Tvete [Fri, 11 Mar 2011 15:45:14 +0000 (16:45 +0100)]
Add a factory function for creating GraphicsHardwareIntegration

We do it the simple way for now...

13 years agoRenamed bindBufferToTexture to createTextureFromBuffer
Jørgen Lind [Fri, 11 Mar 2011 15:12:03 +0000 (16:12 +0100)]
Renamed bindBufferToTexture to createTextureFromBuffer

13 years agoMoved INCLUDEPATH from pro file to pri file
Jørgen Lind [Fri, 11 Mar 2011 12:34:06 +0000 (13:34 +0100)]
Moved INCLUDEPATH from pro file to pri file

13 years agoAdd a dri2_xcb backend. This does not use the eglBindWaylandDisplayWL
Jørgen Lind [Fri, 11 Mar 2011 11:42:58 +0000 (12:42 +0100)]
Add a dri2_xcb backend. This does not use the eglBindWaylandDisplayWL

extension. So it can be considered an example of how make a
Qt-Compositor without using eglBindWaylandDisplayWL but still using the
drm protocol

13 years agoDelay initialising the Wayland::Compositor until we'r in constructor
Jørgen Lind [Fri, 11 Mar 2011 11:36:58 +0000 (12:36 +0100)]
Delay initialising the Wayland::Compositor until we'r in constructor

Also add a handle so we can retrieve Wayland::Compositor from
WaylandCompositor :)

13 years agoAdd private implementation of mesa_egl integration
Jørgen Lind [Fri, 11 Mar 2011 11:35:32 +0000 (12:35 +0100)]
Add private implementation of mesa_egl integration

This so we don't need to pollute the headers with EGL defines

13 years agoPass in Wayland::Display instead of wl_display to initializeHardware
Jørgen Lind [Fri, 11 Mar 2011 11:33:25 +0000 (12:33 +0100)]
Pass in Wayland::Display instead of wl_display to initializeHardware

And fix stupid spelling misstake :(

13 years agoFix not having "our own include paths in pri files"
Jørgen Lind [Wed, 9 Mar 2011 12:29:08 +0000 (13:29 +0100)]
Fix not having "our own include paths in pri files"

Rev-by: paul
13 years agoFix typo in API
Paul Olav Tvete [Wed, 9 Mar 2011 12:11:43 +0000 (13:11 +0100)]
Fix typo in API

Code completion strikes again...

13 years agoI have changed the git config to: showUntrackedFiles = no
Jørgen Lind [Wed, 9 Mar 2011 08:42:55 +0000 (09:42 +0100)]
I have changed the git config to: showUntrackedFiles = no

So this commit should be squashed with
6065bf0c958f63bb1513d3cbb4dc750a763a9de6 but we cant because of public
history:)

13 years agoInitial attempt on abstracting the HW interface.
Jørgen Lind [Wed, 9 Mar 2011 08:36:30 +0000 (09:36 +0100)]
Initial attempt on abstracting the HW interface.

This is just so that we have a general setup. Something is easier to
work with than nothing :)

13 years agoMove private api into its own folder
Jørgen Lind [Wed, 9 Mar 2011 06:50:15 +0000 (07:50 +0100)]
Move private api into its own folder

13 years agoInitial glsupport in qtcomp. It can now draw simple_client
Jørgen Lind [Mon, 7 Mar 2011 16:17:30 +0000 (17:17 +0100)]
Initial glsupport in qtcomp. It can now draw simple_client

"cant move it around though :D" This is just to get something on screen.
Now we have to start doing this "proper". Trying to abstract some things
out etc :)

13 years agoCreate new examples directory for the example compositor.
Samuel Rødal [Fri, 4 Mar 2011 16:30:01 +0000 (17:30 +0100)]
Create new examples directory for the example compositor.

Moving the example compositor makes the separation between the
compositor interface and the example implementation explicit.

13 years agoAdd the DRM protocol files
Paul Olav Tvete [Fri, 4 Mar 2011 16:29:17 +0000 (17:29 +0100)]
Add the DRM protocol files

This interface was removed from Wayland, and is now the responsibility
of the EGL implementation.

13 years agoMake it easy to build without DRM support
Paul Olav Tvete [Wed, 2 Mar 2011 14:54:23 +0000 (15:54 +0100)]
Make it easy to build without DRM support

13 years agoUpdate to latest Wayland version
Paul Olav Tvete [Wed, 2 Mar 2011 14:35:37 +0000 (15:35 +0100)]
Update to latest Wayland version

13 years agoInitial commit for the Qt-Compositor.
Jørgen Lind [Wed, 2 Mar 2011 12:26:40 +0000 (13:26 +0100)]
Initial commit for the Qt-Compositor.

The project goal is to be a toolbox which all Qt based Wayland compositors use.

Initial work is done by:
Samuel Rødal <samuel.rodal@nokia.com>
Paul Olav Tvete <paul.tvete@nokia.com>
and myself