put all context2d code into context2d directory
authorCharles Yin <charles.yin@nokia.com>
Mon, 18 Jul 2011 06:51:55 +0000 (16:51 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jul 2011 23:34:54 +0000 (01:34 +0200)
Change-Id: I38442c8d2bcb9f2dcaa433b6bcfd7dbc21439f63
Reviewed-on: http://codereview.qt.nokia.com/1907
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/items/context2d/context2d.pri [new file with mode: 0644]
src/declarative/items/context2d/qsgcanvasitem.cpp [moved from src/declarative/items/qsgcanvasitem.cpp with 100% similarity]
src/declarative/items/context2d/qsgcanvasitem_p.h [moved from src/declarative/items/qsgcanvasitem_p.h with 100% similarity]
src/declarative/items/context2d/qsgcontext2d.cpp [moved from src/declarative/items/qsgcontext2d.cpp with 100% similarity]
src/declarative/items/context2d/qsgcontext2d_p.h [moved from src/declarative/items/qsgcontext2d_p.h with 100% similarity]
src/declarative/items/context2d/qsgcontext2d_p_p.h [moved from src/declarative/items/qsgcontext2d_p_p.h with 100% similarity]
src/declarative/items/items.pri
src/declarative/items/qsgcanvas.cpp

diff --git a/src/declarative/items/context2d/context2d.pri b/src/declarative/items/context2d/context2d.pri
new file mode 100644 (file)
index 0000000..a43ef78
--- /dev/null
@@ -0,0 +1,11 @@
+INCLUDEPATH += $$PWD
+
+SOURCES += \
+    $$PWD/qsgcanvasitem.cpp \
+    $$PWD/qsgcontext2d.cpp \
+
+HEADERS += \
+    $$PWD/qsgcanvasitem_p.h \
+    $$PWD/qsgcontext2d_p_p.h \
+    $$PWD/qsgcontext2d_p.h \
+
index 7819980..85492b7 100644 (file)
@@ -58,9 +58,6 @@ HEADERS += \
     $$PWD/qsgstateoperations_p.h \
     $$PWD/qsgimplicitsizeitem_p.h \
     $$PWD/qsgimplicitsizeitem_p_p.h \
-    $$PWD/qsgcanvasitem_p.h \
-    $$PWD/qsgcontext2d_p.h \
-    $$PWD/qsgcontext2d_p_p.h \
     $$PWD/qsgspriteengine_p.h \
     $$PWD/qsgsprite_p.h \
     $$PWD/qsgspriteimage_p.h \
@@ -105,8 +102,6 @@ SOURCES += \
     $$PWD/qsganimation.cpp \
     $$PWD/qsgstateoperations.cpp \
     $$PWD/qsgimplicitsizeitem.cpp \
-    $$PWD/qsgcanvasitem.cpp \
-    $$PWD/qsgcontext2d.cpp \
     $$PWD/qsgspriteengine.cpp \
     $$PWD/qsgsprite.cpp \
     $$PWD/qsgspriteimage.cpp \
@@ -124,3 +119,5 @@ HEADERS += \
     $$PWD/qsgshadereffectmesh_p.h \
     $$PWD/qsgshadereffectnode_p.h \
     $$PWD/qsgshadereffectsource_p.h \
+
+include(context2d/context2d.pri)
index d9bf99d..38b5da6 100644 (file)
@@ -861,7 +861,7 @@ void QSGCanvasPrivate::cleanup(QSGNode *n)
 static QGLFormat tweakFormat(const QGLFormat &format = QGLFormat::defaultFormat())
 {
     QGLFormat f = format;
-    f.setSwapInterval(1);
+    f.setSwapInterval(0);
     return f;
 }