diff options
author | wangxianzhu@chromium.org <wangxianzhu@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-08-08 21:38:46 +0000 |
---|---|---|
committer | wangxianzhu@chromium.org <wangxianzhu@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-08-08 21:38:46 +0000 |
commit | e02a11ccdd21ce9cc186e17f65ec6e7682a6a942 (patch) | |
tree | 8566a5d8f509eb62108f10db58483ce51a33a224 /third_party/WebKit/LayoutTests/platform/android/compositing/squashing | |
parent | 3d3761d04949c127070efd7340c35cd94bd8933e (diff) | |
download | chromium_src-e02a11ccdd21ce9cc186e17f65ec6e7682a6a942.zip chromium_src-e02a11ccdd21ce9cc186e17f65ec6e7682a6a942.tar.gz chromium_src-e02a11ccdd21ce9cc186e17f65ec6e7682a6a942.tar.bz2 |
Auto-rebaseline for r179857
http://src.chromium.org/viewvc/blink?view=revision&revision=179857
BUG=394004
TBR=wangxianzhu@chromium.org
Review URL: https://codereview.chromium.org/452923007
git-svn-id: svn://svn.chromium.org/blink/trunk@179870 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/platform/android/compositing/squashing')
10 files changed, 644 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/invalidations-with-large-negative-margin-inline-content-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/invalidations-with-large-negative-margin-inline-content-expected.txt new file mode 100644 index 0000000..f558d7d --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/invalidations-with-large-negative-margin-inline-content-expected.txt @@ -0,0 +1,15 @@ +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "repaintRects": [ + [408, 108, 20, 20], + [408, 108, 20, 20] + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-child-of-squashed-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-child-of-squashed-expected.txt new file mode 100644 index 0000000..89a1b57 --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-child-of-squashed-expected.txt @@ -0,0 +1,63 @@ +CASE 1, original layer tree +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [50, 50], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [130, 130], + "bounds": [100, 100], + "drawsContent": true + } + ] + } + ] + } + ] +} +CASE 2, change color of "inner" to red +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [50, 50], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [130, 130], + "bounds": [100, 100], + "drawsContent": true, + "repaintRects": [ + [10, 10, 50, 50], + [10, 10, 50, 50] + ] + } + ] + } + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-overflow-scrolled-squashed-content-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-overflow-scrolled-squashed-content-expected.txt new file mode 100644 index 0000000..13c2ecf --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-overflow-scrolled-squashed-content-expected.txt @@ -0,0 +1,33 @@ +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "position": [8, 8], + "bounds": [185, 185], + "children": [ + { + "bounds": [150, 1000], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#ADD8E6" + }, + { + "bounds": [100, 1000], + "drawsContent": true, + "repaintRects": [ + [0, 0, 100, 1000], + [0, 0, 100, 1000] + ] + } + ] + } + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-squashed-layer-in-rect-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-squashed-layer-in-rect-expected.txt new file mode 100644 index 0000000..beaefeb --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/repaint-squashed-layer-in-rect-expected.txt @@ -0,0 +1,34 @@ +{ + "bounds": [808, 816], + "children": [ + { + "bounds": [808, 816], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [8, 8], + "bounds": [800, 800], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#D3D3D3" + }, + { + "position": [8, 0], + "bounds": [592, 600], + "drawsContent": true, + "repaintRects": [ + [392, 400, 200, 200], + [392, 400, 200, 200], + [392, 400, 200, 200] + ] + } + ] + } + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-paint-invalidation-fixed-position-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-paint-invalidation-fixed-position-expected.txt new file mode 100644 index 0000000..e803785 --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-paint-invalidation-fixed-position-expected.txt @@ -0,0 +1,65 @@ +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [8, 8], + "bounds": [100, 5000], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#ADD8E6" + }, + { + "position": [8, 25], + "bounds": [100, 125], + "drawsContent": true, + "repaintRects": [ + [0, 25, 100, 100], + [0, 25, 100, 100] + ] + } + ] + } + ] + } + ] +} + { + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [8, 8], + "bounds": [100, 5000], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#ADD8E6" + }, + { + "position": [8, 25], + "bounds": [100, 125], + "drawsContent": true, + "repaintRects": [ + [0, 25, 100, 100], + [0, 25, 100, 100] + ] + } + ] + } + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-partial-repaint-inside-squashed-layer-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-partial-repaint-inside-squashed-layer-expected.txt new file mode 100644 index 0000000..8ba8337 --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-partial-repaint-inside-squashed-layer-expected.txt @@ -0,0 +1,33 @@ +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [100, 100], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [180, 180], + "bounds": [262, 200], + "drawsContent": true, + "repaintRects": [ + [80, 80, 182, 29], + [80, 80, 182, 29] + ] + } + ] + } + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-transform-repainting-child-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-transform-repainting-child-expected.txt new file mode 100644 index 0000000..f7ab9bf --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-transform-repainting-child-expected.txt @@ -0,0 +1,98 @@ +CASE 1, original layer tree +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [100, 100], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [-1, -1], + "bounds": [281, 281], + "drawsContent": true + } + ] + } + ] + } + ] +} +CASE 2, hovering over the outer div +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [100, 100], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [-1, -1], + "bounds": [281, 281], + "drawsContent": true, + "repaintRects": [ + [0, 0, 142, 142], + [0, 0, 142, 142] + ] + } + ] + } + ] + } + ] +} +CASE 3, hovering over the inner div +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [100, 100], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [-1, -1], + "bounds": [281, 281], + "drawsContent": true, + "repaintRects": [ + [32, 32, 71, 71], + [32, 32, 71, 71], + [0, 0, 142, 142], + [0, 0, 142, 142] + ] + } + ] + } + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-transform-repainting-transformed-child-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-transform-repainting-transformed-child-expected.txt new file mode 100644 index 0000000..615ed24 --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squash-transform-repainting-transformed-child-expected.txt @@ -0,0 +1,98 @@ +CASE 1, original layer tree +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [100, 100], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [4, 4], + "bounds": [276, 276], + "drawsContent": true + } + ] + } + ] + } + ] +} +CASE 2, hovering over the outer div +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [100, 100], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [4, 4], + "bounds": [276, 276], + "drawsContent": true, + "repaintRects": [ + [1, 1, 130, 130], + [1, 1, 130, 130] + ] + } + ] + } + ] + } + ] +} +CASE 3, hovering over the inner div +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [100, 100], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#0000FF" + }, + { + "position": [4, 4], + "bounds": [276, 276], + "drawsContent": true, + "repaintRects": [ + [18, 21, 86, 86], + [18, 21, 86, 86], + [1, 1, 130, 130], + [1, 1, 130, 130] + ] + } + ] + } + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squashed-repaints-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squashed-repaints-expected.txt new file mode 100644 index 0000000..75d2b7c --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squashed-repaints-expected.txt @@ -0,0 +1,170 @@ +Basic repaint test for squashed layers. The entire squashing layer should not need repainting when only a portion of it is invalidated. Test interactively by using --show-paint-rects and hovering over elements to change their color. + +CASE 1, original layer tree: +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [60, 60], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#808080" + }, + { + "position": [140, 140], + "bounds": [260, 260], + "drawsContent": true + } + ] + } + ] + } + ] +} +CASE 2, overlap1 changes color: +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [60, 60], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#808080" + }, + { + "position": [140, 140], + "bounds": [260, 260], + "drawsContent": true, + "repaintRects": [ + [0, 0, 100, 100], + [0, 0, 100, 100] + ] + } + ] + } + ] + } + ] +} +CASE 3, overlap1 and overlap2 change color: +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [60, 60], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#808080" + }, + { + "position": [140, 140], + "bounds": [260, 260], + "drawsContent": true, + "repaintRects": [ + [80, 80, 100, 100], + [80, 80, 100, 100], + [0, 0, 100, 100], + [0, 0, 100, 100] + ] + } + ] + } + ] + } + ] +} +CASE 4, overlap2 and overlap3 change color: +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [60, 60], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#808080" + }, + { + "position": [140, 140], + "bounds": [260, 260], + "drawsContent": true, + "repaintRects": [ + [160, 160, 100, 100], + [160, 160, 100, 100], + [80, 80, 100, 100], + [80, 80, 100, 100] + ] + } + ] + } + ] + } + ] +} +CASE 5, overlap3 and overlap1 change color: +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "children": [ + { + "position": [60, 60], + "bounds": [100, 100], + "contentsOpaque": true, + "drawsContent": true, + "backgroundColor": "#808080" + }, + { + "position": [140, 140], + "bounds": [260, 260], + "drawsContent": true, + "repaintRects": [ + [160, 160, 100, 100], + [160, 160, 100, 100], + [0, 0, 100, 100], + [0, 0, 100, 100] + ] + } + ] + } + ] + } + ] +} + diff --git a/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squashing-inside-preserve-3d-element-expected.txt b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squashing-inside-preserve-3d-element-expected.txt new file mode 100644 index 0000000..3492bb6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/platform/android/compositing/squashing/squashing-inside-preserve-3d-element-expected.txt @@ -0,0 +1,35 @@ +{ + "bounds": [800, 600], + "children": [ + { + "bounds": [800, 600], + "contentsOpaque": true, + "drawsContent": true, + "children": [ + { + "3dRenderingContext": 1, + "children": [ + { + "position": [8, 8], + "bounds": [100, 100], + "contentsOpaque": true, + "3dRenderingContext": 1, + "drawsContent": true, + "backgroundColor": "#D3D3D3" + }, + { + "position": [28, 28], + "bounds": [100, 100], + "drawsContent": true, + "repaintRects": [ + [0, 0, 100, 100], + [0, 0, 100, 100] + ] + } + ] + } + ] + } + ] +} + |