Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js

Issue 2306783002: Revert of Compile under-invalidation checking in all builds (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 var testSizes = [ 1 var testSizes = [
2 { width: 600, height: 500 }, // initial size 2 { width: 600, height: 500 }, // initial size
3 { width: 600, height: 250 }, // height decrease 3 { width: 600, height: 250 }, // height decrease
4 { width: 400, height: 250 }, // width decrease 4 { width: 400, height: 250 }, // width decrease
5 { width: 400, height: 600 }, // height increase 5 { width: 400, height: 600 }, // height increase
6 { width: 800, height: 600 } // width increase 6 { width: 800, height: 600 } // width increase
7 ]; 7 ];
8 8
9 var sizeIndex = 0; 9 var sizeIndex = 0;
10 var repaintRects = ""; 10 var repaintRects = "";
11 11
12 if (window.internals) { 12 if (window.internals) {
13 internals.settings.setUseDefaultImageInterpolationQuality(true); 13 internals.settings.setUseDefaultImageInterpolationQuality(true);
14 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = true; 14 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = true;
15 } 15 }
16 16
17 function doTest() { 17 function doTest() {
18 if (sizeIndex) { 18 if (sizeIndex) {
19 repaintRects += internals.layerTreeAsText(document, window.internals.LAY ER_TREE_INCLUDES_PAINT_INVALIDATIONS); 19 repaintRects += internals.layerTreeAsText(document, window.internals.LAY ER_TREE_INCLUDES_PAINT_INVALIDATIONS);
20 internals.stopTrackingRepaints(document); 20 internals.stopTrackingRepaints(document);
21 } 21 }
22 ++sizeIndex; 22 ++sizeIndex;
23 if (sizeIndex < testSizes.length) { 23 if (sizeIndex < testSizes.length) {
24 internals.startTrackingRepaints(document); 24 internals.startTrackingRepaints(document);
25 window.resizeTo(testSizes[sizeIndex].width, testSizes[sizeIndex].height) ; 25 window.resizeTo(testSizes[sizeIndex].width, testSizes[sizeIndex].height) ;
26 testRunner.layoutAndPaintAsyncThen(doTest); 26 testRunner.layoutAndPaintAsyncThen(doTest);
27 } else if (window.testRunner) { 27 } else if (window.testRunner) {
28 testRunner.setCustomTextOutput(repaintRects); 28 testRunner.setCustomTextOutput(repaintRects);
29 testRunner.notifyDone(); 29 testRunner.notifyDone();
30 } 30 }
31 } 31 }
32 32
33 if (window.testRunner) { 33 if (window.testRunner) {
34 testRunner.useUnfortunateSynchronousResizeMode(); 34 testRunner.useUnfortunateSynchronousResizeMode();
35 testRunner.waitUntilDone(); 35 testRunner.waitUntilDone();
36 onload = function() { 36 onload = function() {
37 window.resizeTo(testSizes[0].width, testSizes[0].height); 37 window.resizeTo(testSizes[0].width, testSizes[0].height);
38 testRunner.layoutAndPaintAsyncThen(doTest); 38 testRunner.layoutAndPaintAsyncThen(doTest);
39 }; 39 };
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698