aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/canvas
Commit message (Collapse)AuthorAgeFilesLines
* Fix build error for canvas stockchart example.Charles Yin2011-10-211-1/+1
| | | | | | Change-Id: I82115738ada4fe6a77023a56e962c71284ebc91b Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* tests for canvas and a few bug fixesCharles Yin2011-09-307-7/+7
| | | | | | Change-Id: Icbbc7f2a0fe3b908963ce18afef51e25ea0170a0 Reviewed-on: http://codereview.qt-project.org/5805 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* rename threadRendering to renderInThreadCharles Yin2011-09-1611-23/+17
| | | | | | Change-Id: I21d2492288adc84d3ef99633752e78a3ea232a4a Reviewed-on: http://codereview.qt-project.org/5042 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* fix broken canvas blur after merging refactor branchCharles Yin2011-09-161-2/+2
| | | | | | | Change-Id: If145f1d02566f839abeb50df167db2b237499290 Reviewed-on: http://codereview.qt-project.org/4857 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fix missing/outdated license headers.Jason McDonald2011-09-1610-2/+402
| | | | | | Change-Id: Ib5f244a61cb65db829ee83ec9e4d5e4189319a9f Reviewed-on: http://codereview.qt-project.org/4936 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* canvas item refactorsCharles Yin2011-09-1238-65/+1962
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.Supports tiled canvas with canvasSize, tileSize and canvasWindow 2.Supports different rendering targets: Canvas.Image and Canvas.FrameBufferObject by renderTarget property 3.Supports thread rendering when possible by threadRendering property. 4.Refactors QSGContext2D code, move some logic to QSGContext2DCommandBuffer,QSGContext2DTexture,QSGContext2DTile, etc 5.Updates/adds some canvas examples 6.Some improvements for context2d API 6.1 drawImage() now loads image asynchoronously and draw images automatically when they are ready 6.2 adds fillRule supports 6.3 add svg path supports 6.4 Pixel operations (getImageData/putImageData/createImageData) now have better performance by using V8 indexed array accessors 6.5 Uses QTransform instead of QMatrix 6.6 Gradients/patterns now are V8 values, not QObjects 6.7 Supports measureText and TextMetrics interface 6.8 Gives not support warnings for unimplemented functions (drawFocusRing,setCaretSelectionRect,caretBlinkRate) 6.9 Better error handling, throw standard DOM exceptions according to the HTML5 context2d spec. 6.10 Adds shear, resetTransform to matrix operations 6.11 Adds roundedRect, ellipse, text to path operations 6.12 Adds new features to CanvasImageData interface 1) adds mirror() function 2) adds filter() function, include the following filters: Threshold GrayScale Brightness Invert Blur Blend Opaque Convolute 7. Adds documentations Change-Id: Id19224260d6a3fdc589d1f9681c34a88a7e7b3e5 Reviewed-on: http://codereview.qt-project.org/3621 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fix missing and outdated license headers.Jason McDonald2011-09-094-87/+124
| | | | | | Change-Id: I940ced2e84a86daabc5158d348b05b7532cb1c22 Reviewed-on: http://codereview.qt-project.org/4314 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* disable the canvas svgpath example temporarily.Charles Yin2011-08-242-848/+0
| | | | | | Change-Id: I368acd65e9d352ecc04f4f7aaa3efc43d4530530 Reviewed-on: http://codereview.qt.nokia.com/3440 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* remove motionchart demo (uncompleted)Charles Yin2011-07-291-140/+0
| | | | | | | Change-Id: I4e6b068ca9ceb0b7f76a6548d1b7a8789bc4bf39 Reviewed-on: http://codereview.qt.nokia.com/2237 Reviewed-by: Charles Yin <charles.yin@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* polish canvas stock chart exampleCharles Yin2011-07-2722-61/+601
| | | | | | Change-Id: Ie79859af8572c3c79185d98c54c2aae35190d257 Reviewed-on: http://codereview.qt.nokia.com/1908 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* more on canvas stock chart example.Charles Yin2011-07-207-71/+732
| | | | | | | Change-Id: I7e92414d397b8a0bfdd514c9045677cd00422263 Reviewed-on: http://codereview.qt.nokia.com/1627 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Add stock chart example for canvas itemCharles Yin2011-07-126-0/+560
| | | | | | Change-Id: I72aacfcb72b90d4d18f95cef3038a169c991a336 Reviewed-on: http://codereview.qt.nokia.com/1480 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Rewrite the canvas item's paint logic.Charles Yin2011-07-122-20/+74
| | | | | | | | | | | | | | 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>
* update canvas exampleCharles Yin2011-07-012-2/+1
| | | | | | | Change-Id: I8a797b85f88370c6ddfe64d40a6888aba06998d7 Reviewed-on: http://codereview.qt.nokia.com/693 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* update canvas exampleCharles Yin2011-06-242-22/+33
| | | | Change-Id: I901532eafabc0344f3978c0093ee56ed230c74b0
* add svgpath example for canvas context2dCharles Yin2011-06-232-0/+784
| | | | Change-Id: Ia54b5fd842d13c15c7914d1a1e6b2b2d5718bf81
* show initial chart in motion chart exampleCharles Yin2011-05-181-2/+7
| | | | Change-Id: I39297ced1c532f633a7c9c6c64c0818bbc852084
* fix motion chart example bugCharles Yin2011-05-181-15/+68
| | | | Change-Id: I0d00d224d815210c8ef45f2289e9ec4d0adea6b5
* add motion chart canvas exampleCharles Yin2011-05-181-0/+82
Change-Id: Iccce2c4fc2bdeb4289093fa9675440eff589ae41