| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Note: The official spec is WIP at wiki.whatwg.org/wiki/OffscreenCanvas. | 5 // Note: The official spec is WIP at wiki.whatwg.org/wiki/OffscreenCanvas. |
| 6 | 6 |
| 7 [ | 7 [ |
| 8 Exposed=(Window,Worker), | 8 Exposed=(Window,Worker), |
| 9 RuntimeEnabled=ExperimentalCanvasFeatures, | 9 RuntimeEnabled=ExperimentalCanvasFeatures, |
| 10 ] interface OffscreenCanvasRenderingContext2D { | 10 ] interface OffscreenCanvasRenderingContext2D { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 attribute unrestricted double shadowOffsetY; | 69 attribute unrestricted double shadowOffsetY; |
| 70 attribute unrestricted double shadowBlur; | 70 attribute unrestricted double shadowBlur; |
| 71 attribute DOMString shadowColor; | 71 attribute DOMString shadowColor; |
| 72 | 72 |
| 73 // pixel manipulation | 73 // pixel manipulation |
| 74 [RaisesException] ImageData createImageData(ImageData imagedata); | 74 [RaisesException] ImageData createImageData(ImageData imagedata); |
| 75 [RaisesException] ImageData createImageData(double sw, double sh); | 75 [RaisesException] ImageData createImageData(double sw, double sh); |
| 76 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do
uble sh); | 76 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do
uble sh); |
| 77 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y); | 77 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y); |
| 78 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); | 78 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); |
| 79 |
| 80 [Exposed=Window] attribute DOMString filter; |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; | 83 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |