aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite the canvas item's paint logic.Charles Yin2011-07-125-173/+416
| | | | | | | | | | | | | | 1. Only allow the context API calls inside onPaint() slot function, makes the context2d handle invalid when out of scope. 2. requestPaint() method supports region parameter 3. Emit paint() signal in updatePolish() function to allow threaded scene graph rendering work properly with context2d api 4. Allow request painting mutiple dirty regions between 2 frames. 5. Add svgpath for context2d Change-Id: I5ec48f7c0eb6820d5c9c16a8d0dcc0aae8d0fd2f Reviewed-on: http://codereview.qt.nokia.com/1465 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fixed rendering errors in complex particle system.Samuel Rødal2011-07-111-10/+7
| | | | | | | | | | | We need to set the texture unit of the texture uniform as well, and we might as well set all the texture units in initialize() since they're constant. Change-Id: Ifcc690351ec7d1db1d98ab74644e248ec43cd328 Reviewed-on: http://codereview.qt.nokia.com/1410 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Remove references to demos.Casper van Donderen2011-07-111-1/+1
| | | | | | | Change-Id: I21f935b6de8bdf6a5205f6048cdabf97e16b613a Reviewed-on: http://codereview.qt.nokia.com/1060 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Fixed build of declarative against v8 on a x86_64 machine.Samuel Rødal2011-07-081-1/+1
| | | | | | | | Change-Id: I3a8ca97e8f50754542af142e07bdeb6cb7d6f0de Reviewed-on: http://codereview.qt.nokia.com/1362 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jocelyn Turcotte Reviewed-by: <jedrzej.nowacki@nokia.com>
* Merge branch 'v8'Aaron Kennedy2011-07-08136-7944/+18148
|\ | | | | | | | | | | | | | | Conflicts: src/declarative/qml/qdeclarativescarceresourcescriptclass.cpp src/declarative/qml/qdeclarativescarceresourcescriptclass_p.h Change-Id: I54e579307cbeafbbad21884218c5e797ba245c8b
| * Remove unused fieldsAaron Kennedy2011-07-075-35/+4
| | | | | | | | | | | | Change-Id: I344beb3a01de5b7573a10f4709f334ac64677ad2 Reviewed-on: http://codereview.qt.nokia.com/1131 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Register QDeclarativeV8Handle during constructionAaron Kennedy2011-07-071-0/+1
| | | | | | | | | | | | | | | | | | | | Otherwise it sometimes works, sometimes doesn't depending on whether it was registered by a side effect. Change-Id: Iaf62bcb0a92a7bc8f8858f38e2fe17ab53a733af Reviewed-on: http://codereview.qt.nokia.com/1130 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
| * Correct handling of QObject* and QWidget* propertiesAaron Kennedy2011-07-071-2/+5
| | | | | | | | | | | | | | Change-Id: I28eb68bc0236d5f7a7f9cc178462c3ad6055924e Reviewed-on: http://codereview.qt.nokia.com/1128 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Implement translation functions for V8Aaron Kennedy2011-07-042-1/+127
| | | | | | | | | | | | | | Change-Id: Ida84754969a355e7915233393a552655896ad359 Reviewed-on: http://codereview.qt.nokia.com/1028 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Remove ASCII cache from QStringHashAaron Kennedy2011-07-041-12/+1
| | | | | | | | | | | | | | | | | | | | Now that we have symbol ids, we struggle to recover the time spent creating the ascii hash. We can reintroduce it if we need to. Change-Id: Icb2adac6bbe69f94050e57418b7a8a7bfdb7e221 Reviewed-on: http://codereview.qt.nokia.com/1027 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Optimize QDeclarativePropertyCacheAaron Kennedy2011-07-049-146/+244
| | | | | | | | | | | | | | | | | | The creation of QDeclarativePropertyCaches contributes significantly to the initial compile time of a QML app. Change-Id: Iac5d1578155dfa4678a0e21eab51f4c1675762a9 Reviewed-on: http://codereview.qt.nokia.com/1026 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Don't exceed SMI boundsAaron Kennedy2011-07-041-7/+7
| | | | | | | | | | | | | | | | | | | | If we use an integer that is greater than the maximum SMI value on 32-bit systems (like ARM), v8 allocates the integer as a HeapNumber which is unbelievably slower. Change-Id: I518b5947627631a2621344b656afa0dde002fe82 Reviewed-on: http://codereview.qt.nokia.com/1025 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * CompileAaron Kennedy2011-07-041-2/+2
| | | | | | | | | | | | | | Change-Id: I3bc97df3cb768bcfba6581a291c6a8136cec8a92 Reviewed-on: http://codereview.qt.nokia.com/1024 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Improve performance of v8 string hashes by using symbol idAaron Kennedy2011-07-011-11/+38
| | | | | | | | | | | | | | | | | | | | | | The symbol id is a unique integer associated with a string symbol in V8. If two symbol ids are equal, then the strings are also equal. However, if the two symbol ids are not equal, the strings may still be equal. Change-Id: Ic28f51a1eba568ae4b2a054e278f6e5e454725d6 Reviewed-on: http://codereview.qt.nokia.com/990 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Variants should compare as equalAaron Kennedy2011-07-012-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | We need to implement an object comparison callback to ensure that two variants with identical values (although different JS objects) compare as equal. We also add a v8 autotest for this callback. Change-Id: Idd1ab602d31b398a937d4df4a7bd091aa205de24 Reviewed-on: http://codereview.qt.nokia.com/989 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Update V8Aaron Kennedy2011-07-019-162/+1108
| | | | | | | | | | | | Change-Id: I2736cb8fffaace5cbb9e91d12a75bdedf3f80627 Reviewed-on: http://codereview.qt.nokia.com/988 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Add toString for variantsAaron Kennedy2011-07-012-1/+34
| | | | | | | | | | | | Change-Id: Ia64adeb3640f7f7eedccd7015de729969232a07f Reviewed-on: http://codereview.qt.nokia.com/987 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Merge branch 'master' into v8-cleanAaron Kennedy2011-07-0163-1294/+2352
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/declarative/qml/qdeclarativevme.cpp Change-Id: I0bbc12c06d40c70433730cb33c4e9b461520263f
| * | add drawRegion signal for canvas itemCharles Yin2011-06-244-362/+37
| | | | | | | | | | | | Change-Id: I8dadcb292b5c99d5f520672ab02db3490b21e8fa
| * | expose QSGContext2D::setPathString to v8 Javascript APICharles Yin2011-06-231-0/+14
| | | | | | | | | | | | Change-Id: I97a26c6c5273ba8800b13ca5f1f994eff04a24b8
| * | add svg style path string support for context2d apiCharles Yin2011-06-232-0/+592
| | | | | | | | | | | | Change-Id: I6b815f58c1d96e88fe9b592515bf62b749011b8e
| * | windowShown is a property of qtest, not util.Charles Yin2011-06-231-1/+1
| | | | | | | | | | | | Change-Id: I3d96b6bd43fc8fdfdf9a916032efd9a7360aafba
| * | get the caller file & line number from v8 stack trace.Charles Yin2011-06-235-85/+66
| | | | | | | | | | | | Change-Id: I0ffebd2d22702bc14e1629b8bc0455a9cf8ea416
| * | Support refreshing V8 bindingsAaron Kennedy2011-06-221-0/+8
| | |
| * | Correct rounding behaviorAaron Kennedy2011-06-221-8/+21
| | |
| * | Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging ↵Aaron Kennedy2011-06-221-0/+7
| |\ \ | | | | | | | | | | | | into v8
| * \ \ Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging ↵Aaron Kennedy2011-06-2279-1570/+1714
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into v8 Conflicts: src/declarative/items/qsgcontext2d.cpp src/declarative/qml/qdeclarativexmlhttprequest.cpp tests/auto/declarative/declarative.pro tests/auto/declarative/qdeclarativeinstruction/tst_qdeclarativeinstruction.cpp
| * | | | Optimize common binding writesAaron Kennedy2011-06-205-59/+98
| | | | |
| * | | | Reenable shared bindingsAaron Kennedy2011-06-208-11/+19
| | | | | | | | | | | | | | | | | | | | Now with extra "supports nested components" goodness.
| * | | | Temporarily disable shared V8 bindingsAaron Kennedy2011-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | There is a bug with nested components sharing the outer components shared binding list, which is obviously wrong.
| * | | | Compare QDeclarativeProperty's in a flag agnostic wayAaron Kennedy2011-06-171-2/+3
| | | | |
| * | | | Merge branch 'qtquick2' into v8Aaron Kennedy2011-06-174-1/+17
| |\ \ \ \
| * | | | | Evaluate all shared bindings together using a shared contextAaron Kennedy2011-06-1719-131/+623
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The vast majority of bindings are capable of being shared (that is, don't introduce closures themselves) and consequently this improves the performance of almost every app.
| * | | | | Add "shared mode" to QML contextsAaron Kennedy2011-06-162-7/+38
| | | | | |
| * | | | | CleanupAaron Kennedy2011-06-165-294/+358
| | | | | |
| * | | | | Output the rewritten binding with QML_REWRITE_DUMPAaron Kennedy2011-06-161-1/+1
| | | | | |
| * | | | | Fix autotestsAaron Kennedy2011-06-157-18/+43
| | | | | |
| * | | | | Update V8Aaron Kennedy2011-06-154-10/+16
| | | | | |
| * | | | | Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging ↵Aaron Kennedy2011-06-1514-87/+207
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | into v8
| * | | | | | Register QList<QObject*> metatypeAaron Kennedy2011-06-151-0/+1
| | | | | | |
| * | | | | | Correct handling of CONSTANT propertiesAaron Kennedy2011-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Were being marked as missing a notifier instead.
| * | | | | | Performance improvementsAaron Kennedy2011-06-146-67/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two main changes here. First, where possible, we mark properties as "IsDirect" which means that they exist in a C++ QMetaObject (as opposed to a dynamic meta object), which allows us to call QObject::qt_metacall() directly, bypassing any dynamic meta object stuff. The second change is to use an ascii string comparator in V8 where possible. V8 stores ASCII string internally as ASCII strings, and asking it to compare them to a UTF16 string requires a conversion.
| * | | | | | Update V8Aaron Kennedy2011-06-148-56/+215
| | | | | | |
| * | | | | | Add QHashedV8String to improve lookup performanceAaron Kennedy2011-06-1410-70/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also inline QV8QObjectWrapper::getProperty() which significantly improves context lookups which contain a lot of QObject property lookup misses.
| * | | | | | Use fast property accessors for readonly propertiesAaron Kennedy2011-06-101-2/+20
| | | | | | |
| * | | | | | Merge branch 'qtquick2' into v8Aaron Kennedy2011-06-1017-23/+995
| |\ \ \ \ \ \
| * | | | | | | Update v8 to include ARM patchesAaron Kennedy2011-06-101-0/+0
| | | | | | | |
| * | | | | | | Use optimized QObject wrapper whenever it is possibleAaron Kennedy2011-06-101-1/+5
| | | | | | | |
| * | | | | | | Merge branch 'qtquick2' into v8Aaron Kennedy2011-06-09140-6125/+2690
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/declarative/qml/qml.pri
| * | | | | | | | Minor XXX fixupsAaron Kennedy2011-06-0920-172/+204
| | | | | | | | |