Changeset 190919 in webkit
- Timestamp:
- Oct 12, 2015 7:11:06 PM (9 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/Animometer/tests/simple/resources/simple-canvas-paths.js
r190918 r190919 105 105 }; 106 106 107 function CanvasArcToSegmentFill(stage) { 108 CanvasArcToSegment.call(this, stage); 109 }; 110 CanvasArcToSegmentFill.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 107 118 function CanvasArcSegment(stage) { 108 119 var maxSize = stage.randomInt(20, 200); … … 123 134 context.arc(this._point.x, this._point.y, this._radius, this._startAngle, this._endAngle, this._counterclockwise); 124 135 context.stroke(); 136 }; 137 138 function CanvasArcSegmentFill(stage) { 139 CanvasArcSegment.call(this, stage); 140 }; 141 CanvasArcSegmentFill.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(); 125 146 }; 126 147 -
trunk/PerformanceTests/ChangeLog
r190918 r190919 1 2015-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 1 16 2015-10-12 Jon Lee <jonlee@apple.com> 2 17
Note: See TracChangeset
for help on using the changeset viewer.