aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/softwarecontext/rectanglenode.h
Commit message (Collapse)AuthorAgeFilesLines
* Wrap all classes in Qt namespacer2d-devAndy Nichols2016-03-041-0/+4
| | | | | Change-Id: I1d7c7dfc594f16ad8727d87ebd19021a05bd841e Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Partial update supportAndy Nichols2016-03-041-0/+2
| | | | | | | | | This enables partial update support, which leads to only painting into the backingstore what has changed in the scene each frame, and then only flushing the changed regions to the window surface. Change-Id: I2a3c8676bd4539100a4313069f894f157bfb0ea4 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Add the override specifierAlexander Volkov2016-01-141-9/+9
| | | | | Change-Id: I83ac9f6590cc00606aba0631dbd885437997fc16 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Update license of module to GPL3 and CommercialAndy Nichols2016-01-131-9/+17
| | | | | Change-Id: I489c554054b867e21bdf0d659ff2287b405d485e Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Update headers to pass license check testAndy Nichols2015-11-241-4/+6
| | | | | Change-Id: I48623789ed483a9f8efe17fe398400ed29c87f3f Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* Update Copyright and License headersAndy Nichols2015-08-121-10/+10
| | | | | Change-Id: I4f6dd71bba13b32e5f8f8495675f87eba841bfed Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Fix rendering of RectangleNode when devicePixelRatio != 1Andy Nichols2015-01-081-0/+3
| | | | | Change-Id: Ice0f274afe5ca5e5f453bddc3c3b63f44bbef06c Reviewed-by: Paul Tvete <paul.tvete@theqtcompany.com>
* Improve quality of RectangleNodes when rotatedAndy Nichols2014-10-211-0/+2
| | | | | | | | | | | | | | | | | | | | When there is a rotation transformation on a RectangleNode it is not possible to take advantage of accelerated blitter paths, but we still need to do custom painting to recreate the behavior of a Rectangle component in Qt Quick. Now when there is a rotaiton transformation we will fall back to using QPainter::drawRect as long as there is no border or radius. If there is a border or radius value set though we will instead first render to a QPixmap before painting as the standard behavior of QPainter::drawRect and QPainter::drawRoundedRect does not match the expected behavior of a QQuick Rectangle item. This fixes the poor quality of rotated Rectangles at the cost of speed. The Rotation of any item should still be discouraged for performance reasons, but at least now Rectangles itmes should look correct when used. Change-Id: I3919ad732c9b4354a95e28e8dc09fcefd53f604e Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
* Improve rendering quality of RectanglesAndy Nichols2014-09-091-1/+1
| | | | | | | | | | | | | The existing implementation has both inaccurate drawing of borders as well as many alignment issues. Much of these alignment issues are due to our use of floating point sizes and the integer based nature of blitter hardware. So now for the Rectangle node we force alignment via the use of whole numbers. This should be a better compromise of speed vs accuracy than previously. Change-Id: I9d8e9d1b3347a99bf0c2ae65ec66c935d8017817 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Reformat project to be a Qt ModuleAndy Nichols2014-09-021-0/+61
Change-Id: I2fe8df530a687247a9cd7ea12c1d8de79fef506e Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>