Changeset 192550 in webkit
- Timestamp:
- Nov 17, 2015 4:16:56 PM (8 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/Animometer/runner/resources/animometer.css
r192549 r192550 329 329 330 330 section#running > #running-test > iframe { 331 width: 100%;332 height: 100%;331 width: 800px; 332 height: 600px; 333 333 border: 0px none; 334 overflow: hidden; 334 335 } 335 336 … … 360 361 right: 0px; 361 362 padding: 16px; 363 } 364 365 @media screen and (min-device-width: 1800px) { 366 section#running > #running-test > iframe { 367 width: 1600px; 368 height: 800px; 369 } 362 370 } 363 371 -
trunk/PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-particles.js
r192549 r192550 24 24 // If particle is going to move off right side 25 25 if (this._position.x + this._size.x > this._stageSize.x) { 26 // If direction is East-South 26 // If direction is East-South, go West-South. 27 27 if (this._angle >= 0 && this._angle < Math.PI / 2) 28 28 this._angle = Math.PI - this._angle; 29 // If angle is East-North 29 // If angle is East-North, go West-North. 30 30 else if (this._angle > Math.PI / 2 * 3) 31 31 this._angle = this._angle - (this._angle - Math.PI / 2 * 3) * 2; 32 // Make sure the particle does not go outside the stage boundaries. 33 this._position.x = this._stageSize.x - this._size.x; 32 34 } 33 35 34 36 // If particle is going to move off left side 35 37 if (this._position.x < 0) { 36 // If angle is West-South 38 // If angle is West-South, go East-South. 37 39 if (this._angle > Math.PI / 2 && this._angle < Math.PI) 38 40 this._angle = Math.PI - this._angle; 39 // If angle is West-North 41 // If angle is West-North, go East-North. 40 42 else if (this._angle > Math.PI && this._angle < Math.PI / 2 * 3) 41 43 this._angle = this._angle + (Math.PI / 2 * 3 - this._angle) * 2; 44 // Make sure the particle does not go outside the stage boundaries. 45 this._position.x = 0; 42 46 } 43 47 44 48 // If particle is going to move off bottom side 45 49 if (this._position.y + this._size.y > this._stageSize.y) { 46 // If direction is South 50 // If direction is South, go North. 47 51 if (this._angle > 0 && this._angle < Math.PI) 48 52 this._angle = Math.PI * 2 - this._angle; 53 // Make sure the particle does not go outside the stage boundaries. 54 this._position.y = this._stageSize.y - this._size.y; 49 55 } 50 56 51 57 // If particle is going to move off top side 52 58 if (this._position.y < 0) { 53 // If direction is North 59 // If direction is North, go South. 54 60 if (this._angle > Math.PI && this._angle < Math.PI * 2) 55 61 this._angle = this._angle - (this._angle - Math.PI) * 2; 62 // Make sure the particle does not go outside the stage boundaries. 63 this._position.y = 0; 56 64 } 57 65 } -
trunk/PerformanceTests/ChangeLog
r192549 r192550 1 2015-11-17 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 Disable flattening the stage iframe of the graphics benchmark when running on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=151361 5 6 Reviewed by Simon Fraser. 7 8 Use fixed size for stage iframe of the graphics benchmark to disable 9 flattening the iframe while animating the particles. Also ensure the 10 bouncing particles do not go outside the iframe's boundaries. 11 12 * Animometer/runner/resources/animometer.css: 13 (section#running > #running-test > iframe): 14 (@media screen and (min-device-width: 1800px)): 15 * Animometer/tests/bouncing-particles/resources/bouncing-particles.js: 16 (BouncingParticle.prototype.animate): 17 1 18 2015-11-17 Said Abou-Hallawa <sabouhallawa@apple.com> 2 19
Note: See TracChangeset
for help on using the changeset viewer.