diff options
author | Charles Yin <yinyunqiao@gmail.com> | 2012-06-06 07:09:07 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-31 07:44:12 +0200 |
commit | 4236e7f7ee1d78c5adfebe719afb8b8a6dcd094b (patch) | |
tree | 9889d51119657f74951ad7642dc6a89c8c0d068b /tests/auto/quick/qquickcanvasitem/data/tst_svgpath.qml | |
parent | 9b671727010ccc45cc51840630b159cd34dd983d (diff) |
Refactor context2d thread logic
1. Use QQuickContext2DRenderThread for Threaded rendering
2. Make FBO target works with all render strategies
3. Remove some unnessary locks, call texture methods by invoking meta calls
4. Run existing tests with all render targets and strategies (except Cooperative)
Change-Id: I0db5c91d848b86bcc1536c30d7a5804b66a817f1
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickcanvasitem/data/tst_svgpath.qml')
-rw-r--r-- | tests/auto/quick/qquickcanvasitem/data/tst_svgpath.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/quick/qquickcanvasitem/data/tst_svgpath.qml b/tests/auto/quick/qquickcanvasitem/data/tst_svgpath.qml index 2966811021..2b39357bed 100644 --- a/tests/auto/quick/qquickcanvasitem/data/tst_svgpath.qml +++ b/tests/auto/quick/qquickcanvasitem/data/tst_svgpath.qml @@ -23,16 +23,16 @@ CanvasTestCase { ]; var blues = [ - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, + -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 0, 0, 0, 0, 0, 0,-1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, - 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, + 1, 1, 1, 0,-1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, - 1, 0, 0, 0, 1, 1, 1, 0, 0, 0 + -1, 0, 0, 0, 1, 1, 1, 0, 0, 0 ]; ctx.fillRule = Qt.OddEvenFill; @@ -45,6 +45,7 @@ CanvasTestCase { var x, y; for (x=0; x < 10; x++) { for (y=0; y < 10; y++) { + if (blues[y*10 +x] == -1) continue; //edge point, different render target may have different value if (blues[y * 10 + x]) { comparePixel(ctx, x * 5, y * 5, 0, 0, 255, 255); } else { |