Changeset 234832 in webkit
- Timestamp:
- Aug 13, 2018 5:58:40 PM (6 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/ChangeLog
r234823 r234832 1 2018-08-13 Jon Lee <jonlee@apple.com> 2 3 [MotionMark] Update Multiply test 4 https://bugs.webkit.org/show_bug.cgi?id=188532 5 <rdar://problem/43252151> 6 7 Reviewed by Said Abou-Hallawa. 8 9 Update Multiply test to have a larger upper limit of number of particles. Cycle through three 10 different ways of hiding an element. Add new Multiple suite that isolates those components for 11 debugging purposes. 12 13 * MotionMark/resources/debug-runner/tests.js: 14 * MotionMark/tests/dom/multiply.html: Added. 15 * MotionMark/tests/dom/resources/multiply.js: Added. 16 * MotionMark/tests/master/resources/multiply.js: 17 1 18 2018-08-13 Jon Lee <jonlee@apple.com> 2 19 -
trunk/PerformanceTests/MotionMark/resources/debug-runner/tests.js
r234823 r234832 281 281 )); 282 282 283 Suites.push(new Suite("Multiply suite", 284 [ 285 { 286 url: "dom/multiply.html?style=opacity", 287 name: "Multiply: CSS opacity only" 288 }, 289 { 290 url: "dom/multiply.html?style=display", 291 name: "Multiply: CSS display only" 292 }, 293 { 294 url: "dom/multiply.html?style=visibility", 295 name: "Multiply: CSS visibility only" 296 } 297 ] 298 )); 299 283 300 Suites.push(new Suite("Text suite", 284 301 [ -
trunk/PerformanceTests/MotionMark/tests/master/resources/multiply.js
r224388 r234832 33 33 }, { 34 34 35 visibleCSS: [ 36 ["visibility", "hidden", "visible"], 37 ["opacity", 0, 1], 38 ["display", "none", "block"] 39 ], 40 totalRows: 45, 41 35 42 initialize: function(benchmark, options) 36 43 { 37 44 Stage.prototype.initialize.call(this, benchmark, options); 38 var tileSize = Math.round(this.size.height / 25); 45 var tileSize = Math.round(this.size.height / this.totalRows); 46 if (options.visibleCSS) 47 this.visibleCSS = options.visibleCSS; 39 48 40 49 // Fill the scene with elements … … 84 93 tile.style.width = tileSize + 'px'; 85 94 tile.style.height = tileSize + 'px'; 86 tile.style.visibility = "hidden"; 95 var visibleCSS = this.visibleCSS[this.tiles.length % this.visibleCSS.length]; 96 tile.style[visibleCSS[0]] = visibleCSS[1]; 87 97 88 98 var distance = 1 / tileSize * this.size.multiply(0.5).subtract(new Point(x + halfTileSize, y + halfTileSize)).length(); … … 92 102 step: Math.max(3, distance / 1.5), 93 103 distance: distance, 94 active: false 104 active: false, 105 visibleCSS: visibleCSS, 95 106 }); 96 107 }, … … 117 128 var tile = this.tiles[i]; 118 129 tile.active = true; 119 tile.element.style .visibility = "";130 tile.element.style[tile.visibleCSS[0]] = tile.visibleCSS[2]; 120 131 tile.rotate += tile.step; 121 132 tile.element.style.transform = "rotate(" + tile.rotate + "deg)"; … … 126 137 127 138 for (var i = this._offsetIndex; i < this.tiles.length && this.tiles[i].active; ++i) { 128 this.tiles[i].active = false; 129 this.tiles[i].element.style.visibility = "hidden"; 139 var tile = this.tiles[i]; 140 tile.active = false; 141 tile.element.style[tile.visibleCSS[0]] = tile.visibleCSS[1]; 130 142 } 131 143 }
Note: See TracChangeset
for help on using the changeset viewer.