summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/direct2d/direct2d.pro
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@digia.com>2014-01-17 12:01:22 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-27 09:09:13 +0100
commitbd9e1f3915ec45342f1cd9a70be3ee4dca4b322e (patch)
tree7186057fa5305cc1ec103e935d1a4a4054b444dc /src/plugins/platforms/direct2d/direct2d.pro
parent7d782d4cf9c958d31213ef186ac4013b955c8537 (diff)
Improve direct2d backing store implementation
Add a per-window swap chain to a QPlatformWindow subclass instead of tying it to the backing store. This is needed to support native widgets (as opposed to alien widgets). Change the backing store to draw to an intermediate pixmap and flush to the requested window by using the per-window swap chain. This also opens the door for faster window presentation later on by using the swap chain more intelligently. Also add a changelog entry for the direct2d plugin, which was omitted earlier. [ChangeLog][QtGui][Windows] Introduce experimental direct2d platform plugin for Windows. This plugin shares most code with the current windows plugin, but substitutes a direct2d-based paint engine for window backing stores and pixmaps. Change-Id: I5f54e7e4c1fb15b1639bd26b712fb40ac141e4ac Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/platforms/direct2d/direct2d.pro')
-rw-r--r--src/plugins/platforms/direct2d/direct2d.pro6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/direct2d/direct2d.pro b/src/plugins/platforms/direct2d/direct2d.pro
index 5a1e71b962..4f986b57d7 100644
--- a/src/plugins/platforms/direct2d/direct2d.pro
+++ b/src/plugins/platforms/direct2d/direct2d.pro
@@ -22,7 +22,8 @@ SOURCES += \
qwindowsdirect2dintegration.cpp \
qwindowsdirect2dplatformplugin.cpp \
qwindowsdirect2ddevicecontext.cpp \
- qwindowsdirect2dnativeinterface.cpp
+ qwindowsdirect2dnativeinterface.cpp \
+ qwindowsdirect2dwindow.cpp
HEADERS += \
qwindowsdirect2dpaintengine.h \
@@ -34,6 +35,7 @@ HEADERS += \
qwindowsdirect2dbackingstore.h \
qwindowsdirect2dintegration.h \
qwindowsdirect2ddevicecontext.h \
- qwindowsdirect2dnativeinterface.h
+ qwindowsdirect2dnativeinterface.h \
+ qwindowsdirect2dwindow.h
OTHER_FILES += direct2d.json