Skip to content

Commit f2408a9

Browse files
committed
Respond to review feedback:
* remove empty constructors * fix TextStage static shadowFalloff initialization * WebGPU test should use WebGPUStage and WebGPUBenchmark * Whitespace
1 parent 3f363c0 commit f2408a9

21 files changed

+9
-104
lines changed

MotionMark/resources/extensions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,12 @@ class Point {
298298

299299
length()
300300
{
301-
return Math.sqrt( this.x * this.x + this.y * this.y );
301+
return Math.sqrt(this.x * this.x + this.y * this.y);
302302
}
303303

304304
normalize()
305305
{
306-
var l = Math.sqrt( this.x * this.x + this.y * this.y );
306+
var l = Math.sqrt(this.x * this.x + this.y * this.y);
307307
this.x /= l;
308308
this.y /= l;
309309
return this;

MotionMark/tests/3d/resources/webgl.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
*/
2525

2626
class WebGLStage extends Stage {
27-
constructor(element, options)
28-
{
29-
super();
30-
}
31-
3227
initialize(benchmark, options)
3328
{
3429
super.initialize(benchmark, options);

MotionMark/tests/3d/resources/webgpu.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ fragment float4 fragmentMain(float4 inColor : attribute(1)) : SV_Target 0 {
6565
}
6666
`;
6767

68-
class WebGLStage extends Stage {
69-
constructor(element, options)
68+
class WebGPUStage extends Stage {
69+
constructor()
7070
{
7171
super();
7272
}
@@ -314,10 +314,10 @@ class WebGLStage extends Stage {
314314
}
315315
}
316316

317-
class WebGLBenchmark extends Benchmark {
317+
class WebGPUBenchmark extends Benchmark {
318318
constructor(options)
319319
{
320-
super(new WebGLStage(), options);
320+
super(new WebGPUStage(), options);
321321
}
322322

323323
waitUntilReady()
@@ -327,4 +327,4 @@ class WebGLBenchmark extends Benchmark {
327327
}
328328
}
329329

330-
window.benchmarkClass = WebGLBenchmark;
330+
window.benchmarkClass = WebGPUBenchmark;

MotionMark/tests/bouncing-particles/resources/bouncing-canvas-images.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ class BouncingCanvasImage extends BouncingCanvasParticle {
4040
}
4141

4242
class BouncingCanvasImagesStage extends BouncingCanvasParticlesStage {
43-
constructor()
44-
{
45-
super();
46-
}
47-
4843
initialize(benchmark, options)
4944
{
5045
super.initialize(benchmark, options);

MotionMark/tests/bouncing-particles/resources/bouncing-canvas-particles.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ class BouncingCanvasParticle extends BouncingParticle {
9393
}
9494

9595
class BouncingCanvasParticlesStage extends BouncingParticlesStage {
96-
constructor()
97-
{
98-
super();
99-
}
100-
10196
initialize(benchmark, options)
10297
{
10398
super.initialize(benchmark, options);

MotionMark/tests/bouncing-particles/resources/bouncing-css-images.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ class BouncingCssImage extends BouncingParticle {
5050
}
5151

5252
class BouncingCssImagesStage extends BouncingParticlesStage {
53-
constructor()
54-
{
55-
super();
56-
}
57-
5853
initialize(benchmark, options)
5954
{
6055
super.initialize(benchmark, options);

MotionMark/tests/bouncing-particles/resources/bouncing-css-shapes.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ class BouncingCssShape extends BouncingParticle {
7575
}
7676

7777
class BouncingCssShapesStage extends BouncingParticlesStage {
78-
constructor()
79-
{
80-
super();
81-
}
82-
8378
initialize(benchmark, options)
8479
{
8580
super.initialize(benchmark, options);

MotionMark/tests/bouncing-particles/resources/bouncing-svg-images.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ class BouncingSvgImage extends BouncingSvgParticle {
3636
)
3737

3838
class BouncingSvgImagesStage extends BouncingSvgParticlesStage {
39-
constructor()
40-
{
41-
super();
42-
}
43-
4439
initialize(benchmark, options)
4540
{
4641
super.initialize(benchmark, options);

MotionMark/tests/bouncing-particles/resources/bouncing-svg-particles.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ class BouncingSvgParticle extends BouncingParticle {
5555
}
5656

5757
class BouncingSvgParticlesStage extends BouncingParticlesStage {
58-
constructor()
59-
{
60-
super();
61-
}
62-
6358
_createDefs()
6459
{
6560
return Utilities.createSVGElement("defs", {}, {}, this.element);

MotionMark/tests/bouncing-particles/resources/bouncing-svg-shapes.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ class BouncingSvgShape extends BouncingSvgParticle {
6969
}
7070

7171
class BouncingSvgShapesStage extends BouncingSvgParticlesStage {
72-
constructor()
73-
{
74-
super();
75-
}
76-
7772
initialize(benchmark, options)
7873
{
7974
super.initialize(benchmark, options);

0 commit comments

Comments
 (0)