aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/items.pri
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-12-07 10:16:20 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-08 10:10:27 +0100
commitfdd14a1a10a0a2f42015b30071771bd95215cc1a (patch)
tree1e79b74017df70e7f4b034dd4460406041507636 /src/quick/items/items.pri
parent9128eb13040c57872e226222c9a45cad9946ed1a (diff)
Implemented multiple windows and GL context sharing
What was traditionally the QQuickRenderLoop which was used to support one QQuickCanvas instance has now grown to support multiple QQuickCanvas instances and is now called QQuickWindowManager, of which there are two implementations. QQuickRenderThreadSingleContextWindowManager: One QSGContext and one OpenGL context is being used to draw all the windows and we alternate between which surface the gl context is bound to. This implementation relies on that swap does not block, but that the graphics pipeline is vsynced and will eventually block as the buffer queue is filled up. This is the behavior we get on Mac OS X and Wayland. The benefit of this implementation is that we have vsync'ed animations, and the synchronizaiton between GUI and render thread is simple. (well, simple relative to the alternative, that is). QQuickTrivialWindowManager: One QSGContext and one OpenGL context is being used on the GUI thread. Animations are ticked from a timer. Performance of this implementation will deteriorate if the driver is using blocking swap. Task-number: QTBUG-19455 Change-Id: Ib961ac7d71eb49c70a057872b7cac020c4d19f3d Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/quick/items/items.pri')
-rw-r--r--src/quick/items/items.pri8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/quick/items/items.pri b/src/quick/items/items.pri
index 308706f0b9..a224db31d6 100644
--- a/src/quick/items/items.pri
+++ b/src/quick/items/items.pri
@@ -67,7 +67,8 @@ HEADERS += \
$$PWD/qquickmultipointtoucharea_p.h \
$$PWD/qquickitemview_p.h \
$$PWD/qquickitemview_p_p.h \
- $$PWD/qquickwindowmodule_p.h
+ $$PWD/qquickwindowmodule_p.h \
+ $$PWD/qquickwindowmanager_p.h
SOURCES += \
$$PWD/qquickevents.cpp \
@@ -114,7 +115,8 @@ SOURCES += \
$$PWD/qquickdroparea.cpp \
$$PWD/qquickmultipointtoucharea.cpp \
$$PWD/qquickitemview.cpp \
- $$PWD/qquickwindowmodule.cpp
+ $$PWD/qquickwindowmodule.cpp \
+ $$PWD/qquickwindowmanager.cpp
SOURCES += \
$$PWD/qquickshadereffect.cpp \
@@ -129,3 +131,5 @@ HEADERS += \
$$PWD/qquickshadereffectsource_p.h \
include(context2d/context2d.pri)
+
+