<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[190912] trunk/PerformanceTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/190912">190912</a></dd>
<dt>Author</dt> <dd>jonlee@apple.com</dd>
<dt>Date</dt> <dd>2015-10-12 18:11:45 -0700 (Mon, 12 Oct 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add basic canvas tests
https://bugs.webkit.org/show_bug.cgi?id=150066
rdar://problem/23081143

Reviewed by Dean Jackson.

This adds a new test suite that will cover all of the path-based canvas calls.
The patch will be divided up to cover tests with similar techniques.

The simplest version uses a SimpleCanvasStage.

* Animometer/runner/resources/tests.js: Add tests for quadratic, bezier, arcTo,
arc, and rect segments. Also include arcTo, arc, and rect fills.
* Animometer/tests/resources/stage.js:
(Stage.prototype.randomBool): Added for counterclockwise property for arc segments.
(Stage.prototype.randomInt): Fix how values are rounded, used by randomBool. It should
round instead of flooring everything.
* Animometer/tests/simple/resources/simple-canvas.js: Added. Defines common classes
used by all simple canvas tests. The page reads best bottom to top.
(SimpleCanvasStage): Basic stage. Pass a canvasObject which will be used to create new
objects as needed in tune().
(SimpleCanvasStage.prototype.tune): Modeled on other tests. Adds and removed objects
as specified by the provided |count|.
(SimpleCanvasStage.prototype.animate): Iterate over all the objects and ask them to draw.
There is no &quot;animating&quot; of the objects; they will just paint statically on the canvas.
(SimpleCanvasAnimator): Basic animator clears the canvas prior to painting.
(SimpleCanvasBenchmark): Hard-code the feedback loop parameters instead of including
them in the query parameters to the test URLs.
(SimpleCanvasBenchmark.prototype.createAnimator):
* Animometer/tests/simple/simple-canvas-paths.html: Added.

* Animometer/tests/simple/resources/simple-canvas-paths.js: Added. There is no &quot;animating&quot;
of these objects--they just paint statically on the canvas.
(CanvasQuadraticSegment): Paint a quadratic segment stroke.
(CanvasBezierSegment): Paint a bezier segment stroke.
(CanvasArcToSegment): Paint an arcTo stroke.
(CanvasArcSegment): Paint an arc stroke.
(CanvasRect): Paint a rect.
(CanvasRectFill): Paint a filled rect.

(CanvasPathBenchmark):
(CanvasPathBenchmark.prototype.createStage): Look for the pathType and create the
stage using the right paint object.
(window.benchmarkClient.create):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkPerformanceTestsAnimometerrunnerresourcestestsjs">trunk/PerformanceTests/Animometer/runner/resources/tests.js</a></li>
<li><a href="#trunkPerformanceTestsAnimometertestsresourcesstagejs">trunk/PerformanceTests/Animometer/tests/resources/stage.js</a></li>
<li><a href="#trunkPerformanceTestsChangeLog">trunk/PerformanceTests/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/PerformanceTests/Animometer/tests/simple/</li>
<li>trunk/PerformanceTests/Animometer/tests/simple/resources/</li>
<li><a href="#trunkPerformanceTestsAnimometertestssimpleresourcessimplecanvaspathsjs">trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas-paths.js</a></li>
<li><a href="#trunkPerformanceTestsAnimometertestssimpleresourcessimplecanvasjs">trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas.js</a></li>
<li><a href="#trunkPerformanceTestsAnimometertestssimplesimplecanvaspathshtml">trunk/PerformanceTests/Animometer/tests/simple/simple-canvas-paths.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkPerformanceTestsAnimometerrunnerresourcestestsjs"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/runner/resources/tests.js (190911 => 190912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/runner/resources/tests.js        2015-10-13 00:55:06 UTC (rev 190911)
+++ trunk/PerformanceTests/Animometer/runner/resources/tests.js        2015-10-13 01:11:45 UTC (rev 190912)
</span><span class="lines">@@ -136,6 +136,43 @@
</span><span class="cx">     ]
</span><span class="cx"> ));
</span><span class="cx"> 
</span><ins>+Suites.push(new Suite(&quot;Basic canvas path suite&quot;,
+    [
+        {
+            url: &quot;simple/simple-canvas-paths.html?pathType=quadratic&quot;,
+            name: &quot;Canvas quadratic segments&quot;
+        },
+        {
+            url: &quot;simple/simple-canvas-paths.html?pathType=bezier&quot;,
+            name: &quot;Canvas bezier segments&quot;
+        },
+        {
+            url: &quot;simple/simple-canvas-paths.html?&amp;pathType=arcTo&quot;,
+            name: &quot;Canvas arcTo segments&quot;
+        },
+        {
+            url: &quot;simple/simple-canvas-paths.html?pathType=arc&quot;,
+            name: &quot;Canvas arc segments&quot;
+        },
+        {
+            url: &quot;simple/simple-canvas-paths.html?pathType=rect&quot;,
+            name: &quot;Canvas rects&quot;
+        },
+        {
+            url: &quot;simple/simple-canvas-paths.html?&amp;pathType=arcToFill&quot;,
+            name: &quot;Canvas arcTo segments, fill&quot;
+        },
+        {
+            url: &quot;simple/simple-canvas-paths.html?pathType=arcFill&quot;,
+            name: &quot;Canvas arc segments, fill&quot;
+        },
+        {
+            url: &quot;simple/simple-canvas-paths.html?pathType=rectFill&quot;,
+            name: &quot;Canvas rects, fill&quot;
+        }
+    ]
+));
+
</ins><span class="cx"> Suites.push(new Suite(&quot;Complex examples&quot;,
</span><span class="cx">     [
</span><span class="cx">         {
</span></span></pre></div>
<a id="trunkPerformanceTestsAnimometertestsresourcesstagejs"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/tests/resources/stage.js (190911 => 190912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/tests/resources/stage.js        2015-10-13 00:55:06 UTC (rev 190911)
+++ trunk/PerformanceTests/Animometer/tests/resources/stage.js        2015-10-13 01:11:45 UTC (rev 190912)
</span><span class="lines">@@ -55,9 +55,14 @@
</span><span class="cx">         return (Math.random() * (max - min)) + min;
</span><span class="cx">     },
</span><span class="cx">     
</span><ins>+    randomBool: function()
+    {
+        return !!Math.round(this.random(0, 1));
+    },
+
</ins><span class="cx">     randomInt: function(min, max)
</span><span class="cx">     {
</span><del>-        return Math.floor(this.random(min, max));
</del><ins>+        return Math.round(this.random(min, max));
</ins><span class="cx">     },
</span><span class="cx">     
</span><span class="cx">     randomPosition: function(maxPosition)
</span></span></pre></div>
<a id="trunkPerformanceTestsAnimometertestssimpleresourcessimplecanvaspathsjs"></a>
<div class="addfile"><h4>Added: trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas-paths.js (0 => 190912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas-paths.js                                (rev 0)
+++ trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas-paths.js        2015-10-13 01:11:45 UTC (rev 190912)
</span><span class="lines">@@ -0,0 +1,138 @@
</span><ins>+// === PAINT OBJECTS ===
+
+function CanvasQuadraticSegment(stage) {
+    var maxSize = stage.randomInt(20, 200);
+    var toCenter = stage.randomPosition(stage.size).subtract(new Point(maxSize/2, maxSize/2));
+
+    this._point1 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._point2 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._point3 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._color = stage.randomColor();
+    this._lineWidth = stage.randomInt(1, 50);
+};
+CanvasQuadraticSegment.prototype.draw = function(context) {
+    context.strokeStyle = this._color;
+    context.lineWidth = this._lineWidth;
+    context.beginPath();
+    context.moveTo(this._point1.x, this._point1.y);
+    context.quadraticCurveTo(this._point2.x, this._point2.y, this._point3.x, this._point3.y);
+    context.stroke();
+};
+
+function CanvasBezierSegment(stage) {
+    var maxSize = stage.randomInt(20, 200);
+    var toCenter = stage.randomPosition(stage.size).subtract(new Point(maxSize/2, maxSize/2));
+
+    this._point1 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._point2 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._point3 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._point4 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._color = stage.randomColor();
+    this._lineWidth = stage.randomInt(1, 50);
+};
+CanvasBezierSegment.prototype.draw = function(context) {
+    context.strokeStyle = this._color;
+    context.lineWidth = this._lineWidth;
+    context.beginPath();
+    context.moveTo(this._point1.x, this._point1.y);
+    context.bezierCurveTo(this._point2.x, this._point2.y, this._point3.x, this._point3.y, this._point4.x, this._point4.y);
+    context.stroke();
+};
+
+function CanvasArcToSegment(stage) {
+    var maxSize = stage.randomInt(20, 200);
+    var toCenter = stage.randomPosition(stage.size).subtract(new Point(maxSize/2, maxSize/2));
+
+    this._point1 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._point2 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._point3 = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._radius = stage.randomInt(20, 200);
+    this._color = stage.randomColor();
+    this._lineWidth = stage.randomInt(1, 50);
+};
+CanvasArcToSegment.prototype.draw = function(context) {
+    context.strokeStyle = this._color;
+    context.lineWidth = this._lineWidth;
+    context.beginPath();
+    context.moveTo(this._point1.x, this._point1.y);
+    context.arcTo(this._point2.x, this._point2.y, this._point3.x, this._point3.y, this._radius);
+    context.stroke();
+};
+
+function CanvasArcSegment(stage) {
+    var maxSize = stage.randomInt(20, 200);
+    var toCenter = stage.randomPosition(stage.size).subtract(new Point(maxSize/2, maxSize/2));
+
+    this._point = stage.randomPosition(new Point(maxSize, maxSize)).add(toCenter);
+    this._radius = stage.randomInt(20, 200);
+    this._startAngle = stage.randomAngle();
+    this._endAngle = stage.randomAngle();
+    this._counterclockwise = stage.randomBool();
+    this._color = stage.randomColor();
+    this._lineWidth = stage.randomInt(1, 50);
+};
+CanvasArcSegment.prototype.draw = function(context) {
+    context.strokeStyle = this._color;
+    context.lineWidth = this._lineWidth;
+    context.beginPath();
+    context.arc(this._point.x, this._point.y, this._radius, this._startAngle, this._endAngle, this._counterclockwise);
+    context.stroke();
+};
+
+function CanvasRect(stage) {
+    this._width = stage.randomInt(20, 200);
+    this._height = stage.randomInt(20, 200);
+    this._point = stage.randomPosition(stage.size).subtract(new Point(this._width/2, this._height/2));
+    this._color = stage.randomColor();
+    this._lineWidth = stage.randomInt(1, 20);
+}
+CanvasRect.prototype.draw = function(context) {
+    context.strokeStyle = this._color;
+    context.lineWidth = this._lineWidth;
+    context.beginPath();
+    context.rect(this._point.x, this._point.y, this._width, this._height);
+    context.stroke();
+};
+
+function CanvasRectFill(stage) {
+    CanvasRect.call(this, stage);
+}
+CanvasRectFill.prototype.draw = function(context) {
+    context.fillStyle = this._color;
+    context.beginPath();
+    context.rect(this._point.x, this._point.y, this._width, this._height);
+    context.fill();
+};
+
+// === BENCHMARK ===
+
+function CanvasPathBenchmark(suite, test, options, recordTable, progressBar) {
+    SimpleCanvasBenchmark.call(this, suite, test, options, recordTable, progressBar);
+}
+CanvasPathBenchmark.prototype = Object.create(SimpleCanvasBenchmark.prototype);
+CanvasPathBenchmark.prototype.constructor = CanvasPathBenchmark;
+CanvasPathBenchmark.prototype.createStage = function(element)
+{
+    switch (this._options[&quot;pathType&quot;]) {
+    case &quot;quadratic&quot;:
+        return new SimpleCanvasStage(element, this._options, CanvasQuadraticSegment);
+    case &quot;bezier&quot;:
+        return new SimpleCanvasStage(element, this._options, CanvasBezierSegment);
+    case &quot;arcTo&quot;:
+        return new SimpleCanvasStage(element, this._options, CanvasArcToSegment);
+    case &quot;arc&quot;:
+        return new SimpleCanvasStage(element, this._options, CanvasArcSegment);
+    case &quot;rect&quot;:
+        return new SimpleCanvasStage(element, this._options, CanvasRect);
+    case &quot;arcToFill&quot;:
+        return new SimpleCanvasStage(element, this._options, CanvasArcToSegmentFill);
+    case &quot;arcFill&quot;:
+        return new SimpleCanvasStage(element, this._options, CanvasArcSegmentFill);
+    case &quot;rectFill&quot;:
+        return new SimpleCanvasStage(element, this._options, CanvasRectFill);
+    }
+}
+
+window.benchmarkClient.create = function(suite, test, options, recordTable, progressBar) {
+    return new CanvasPathBenchmark(suite, test, options, recordTable, progressBar);
+}
</ins></span></pre></div>
<a id="trunkPerformanceTestsAnimometertestssimpleresourcessimplecanvasjs"></a>
<div class="addfile"><h4>Added: trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas.js (0 => 190912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas.js                                (rev 0)
+++ trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas.js        2015-10-13 01:11:45 UTC (rev 190912)
</span><span class="lines">@@ -0,0 +1,62 @@
</span><ins>+
+function SimpleCanvasStage(element, options, canvasObject)
+{
+    Stage.call(this, element, options);
+    this.context = this.element.getContext(&quot;2d&quot;);
+    this.canvasObject = canvasObject;
+    this._objects = [];
+}
+SimpleCanvasStage.prototype = Object.create(Stage.prototype);
+SimpleCanvasStage.prototype.constructor = SimpleCanvasStage;
+SimpleCanvasStage.prototype.tune = function(count)
+{
+    if (count == 0)
+        return this._objects.length;
+
+    if (count &gt; 0) {
+        for (var i = 0; i &lt; count; ++i) {
+            this._objects.push(new this.canvasObject(this));
+        }
+        return this._objects.length;
+    }
+
+    count = Math.min(-count, this._objects.length);
+    this._objects.splice(-count, count);
+
+    return this._objects.length;
+}
+SimpleCanvasStage.prototype.animate = function()
+{
+    var context = this.context;
+    this._objects.forEach(function(object) {
+        object.draw(context);
+    });
+}
+
+function SimpleCanvasAnimator(benchmark)
+{
+    StageAnimator.call(this, benchmark);
+    this._context = benchmark._stage.context;
+}
+
+SimpleCanvasAnimator.prototype = Object.create(StageAnimator.prototype);
+SimpleCanvasAnimator.prototype.constructor = SimpleCanvasAnimator;
+SimpleCanvasAnimator.prototype.animate = function()
+{
+    this._context.clearRect(0, 0, this._benchmark._stage.size.x, this._benchmark._stage.size.y);
+    return StageAnimator.prototype.animate.call(this);
+}
+
+
+function SimpleCanvasBenchmark(suite, test, options, recordTable, progressBar) {
+    options[&quot;gain&quot;] = 6;
+    options[&quot;addLimit&quot;] = 100;
+    options[&quot;removeLimit&quot;] = 1000;
+    StageBenchmark.call(this, suite, test, options, recordTable, progressBar);
+}
+SimpleCanvasBenchmark.prototype = Object.create(StageBenchmark.prototype);
+SimpleCanvasBenchmark.prototype.constructor = SimpleCanvasBenchmark;
+SimpleCanvasBenchmark.prototype.createAnimator = function() {
+    return new SimpleCanvasAnimator(this);
+}
+
</ins></span></pre></div>
<a id="trunkPerformanceTestsAnimometertestssimplesimplecanvaspathshtml"></a>
<div class="addfile"><h4>Added: trunk/PerformanceTests/Animometer/tests/simple/simple-canvas-paths.html (0 => 190912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/tests/simple/simple-canvas-paths.html                                (rev 0)
+++ trunk/PerformanceTests/Animometer/tests/simple/simple-canvas-paths.html        2015-10-13 01:11:45 UTC (rev 190912)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;../resources/stage.css&quot;&gt;
+    &lt;script src=&quot;../../resources/algorithm.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;../../resources/sampler.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;../../resources/extensions.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;../resources/math.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;../resources/utilities.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;../resources/main.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;../resources/stage.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;resources/simple-canvas.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;resources/simple-canvas-paths.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;canvas id=&quot;stage&quot;&gt;&lt;/canvas&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkPerformanceTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/ChangeLog (190911 => 190912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/ChangeLog        2015-10-13 00:55:06 UTC (rev 190911)
+++ trunk/PerformanceTests/ChangeLog        2015-10-13 01:11:45 UTC (rev 190912)
</span><span class="lines">@@ -1,5 +1,52 @@
</span><span class="cx"> 2015-10-12  Jon Lee  &lt;jonlee@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Add basic canvas tests
+        https://bugs.webkit.org/show_bug.cgi?id=150066
+        rdar://problem/23081143
+
+        Reviewed by Dean Jackson.
+
+        This adds a new test suite that will cover all of the path-based canvas calls.
+        The patch will be divided up to cover tests with similar techniques.
+
+        The simplest version uses a SimpleCanvasStage.
+
+        * Animometer/runner/resources/tests.js: Add tests for quadratic, bezier, arcTo,
+        arc, and rect segments. Also include arcTo, arc, and rect fills.
+        * Animometer/tests/resources/stage.js:
+        (Stage.prototype.randomBool): Added for counterclockwise property for arc segments.
+        (Stage.prototype.randomInt): Fix how values are rounded, used by randomBool. It should
+        round instead of flooring everything.
+        * Animometer/tests/simple/resources/simple-canvas.js: Added. Defines common classes
+        used by all simple canvas tests. The page reads best bottom to top.
+        (SimpleCanvasStage): Basic stage. Pass a canvasObject which will be used to create new
+        objects as needed in tune().
+        (SimpleCanvasStage.prototype.tune): Modeled on other tests. Adds and removed objects
+        as specified by the provided |count|.
+        (SimpleCanvasStage.prototype.animate): Iterate over all the objects and ask them to draw.
+        There is no &quot;animating&quot; of the objects; they will just paint statically on the canvas.
+        (SimpleCanvasAnimator): Basic animator clears the canvas prior to painting.
+        (SimpleCanvasBenchmark): Hard-code the feedback loop parameters instead of including
+        them in the query parameters to the test URLs.
+        (SimpleCanvasBenchmark.prototype.createAnimator):
+        * Animometer/tests/simple/simple-canvas-paths.html: Added.
+
+        * Animometer/tests/simple/resources/simple-canvas-paths.js: Added. There is no &quot;animating&quot;
+        of these objects--they just paint statically on the canvas.
+        (CanvasQuadraticSegment): Paint a quadratic segment stroke.
+        (CanvasBezierSegment): Paint a bezier segment stroke.
+        (CanvasArcToSegment): Paint an arcTo stroke.
+        (CanvasArcSegment): Paint an arc stroke.
+        (CanvasRect): Paint a rect.
+        (CanvasRectFill): Paint a filled rect.
+
+        (CanvasPathBenchmark):
+        (CanvasPathBenchmark.prototype.createStage): Look for the pathType and create the
+        stage using the right paint object.
+        (window.benchmarkClient.create):
+
+2015-10-12  Jon Lee  &lt;jonlee@apple.com&gt;
+
</ins><span class="cx">         Refactor tune() to pass in an integer-based count
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=150060
</span><span class="cx">         &lt;rdar://problem/23079425&gt;
</span></span></pre>
</div>
</div>

</body>
</html>