Changeset 190919 in webkit


Ignore:
Timestamp:
Oct 12, 2015 7:11:06 PM (9 years ago)
Author:
jonlee@apple.com
Message:

Add missing paint objects for arc and arcTo fills
https://bugs.webkit.org/show_bug.cgi?id=150075
<rdar://problem/23082233>

Reviewed by Dean Jackson.

  • Animometer/tests/simple/resources/simple-canvas-paths.js: Add missing paint objects

for arcTo and arc segment fills.
(CanvasArcToSegmentFill):
(CanvasArcToSegmentFill.prototype.draw):
(CanvasArcSegmentFill):
(CanvasArcSegmentFill.prototype.draw):

Location:
trunk/PerformanceTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas-paths.js

    r190918 r190919  
    105105};
    106106
     107function CanvasArcToSegmentFill(stage) {
     108    CanvasArcToSegment.call(this, stage);
     109};
     110CanvasArcToSegmentFill.prototype.draw = function(context) {
     111    context.fillStyle = this._color;
     112    context.beginPath();
     113    context.moveTo(this._point1.x, this._point1.y);
     114    context.arcTo(this._point2.x, this._point2.y, this._point3.x, this._point3.y, this._radius);
     115    context.fill();
     116};
     117
    107118function CanvasArcSegment(stage) {
    108119    var maxSize = stage.randomInt(20, 200);
     
    123134    context.arc(this._point.x, this._point.y, this._radius, this._startAngle, this._endAngle, this._counterclockwise);
    124135    context.stroke();
     136};
     137
     138function CanvasArcSegmentFill(stage) {
     139    CanvasArcSegment.call(this, stage);
     140};
     141CanvasArcSegmentFill.prototype.draw = function(context) {
     142    context.fillStyle = this._color;
     143    context.beginPath();
     144    context.arc(this._point.x, this._point.y, this._radius, this._startAngle, this._endAngle, this._counterclockwise);
     145    context.fill();
    125146};
    126147
  • trunk/PerformanceTests/ChangeLog

    r190918 r190919  
     12015-10-12  Jon Lee  <jonlee@apple.com>
     2
     3        Add missing paint objects for arc and arcTo fills
     4        https://bugs.webkit.org/show_bug.cgi?id=150075
     5        <rdar://problem/23082233>
     6
     7        Reviewed by Dean Jackson.
     8
     9        * Animometer/tests/simple/resources/simple-canvas-paths.js: Add missing paint objects
     10        for arcTo and arc segment fills.
     11        (CanvasArcToSegmentFill):
     12        (CanvasArcToSegmentFill.prototype.draw):
     13        (CanvasArcSegmentFill):
     14        (CanvasArcSegmentFill.prototype.draw):
     15
    1162015-10-12  Jon Lee  <jonlee@apple.com>
    217
Note: See TracChangeset for help on using the changeset viewer.