Rewrite the canvas item's paint logic.
authorCharles Yin <charles.yin@nokia.com>
Mon, 11 Jul 2011 23:21:27 +0000 (09:21 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jul 2011 02:25:33 +0000 (04:25 +0200)
commitb119220da60453ecf31898f7a57eda9d3c4e9225
tree0b316ed1ef9a5e0e154c0a87628a6a5ff205c9dc
parentbd4d69c9a88f476b4de4ba80945d39725bb29efa
Rewrite the canvas item's paint logic.

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>
examples/declarative/canvas/svgpath/tiger.js
examples/declarative/canvas/svgpath/tiger.qml
src/declarative/items/qsgcanvasitem.cpp
src/declarative/items/qsgcanvasitem_p.h
src/declarative/items/qsgcontext2d.cpp
src/declarative/items/qsgcontext2d_p.h
src/declarative/items/qsgcontext2d_p_p.h