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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void translate(unrestricted double x, unrestricted double y); | 56 void translate(unrestricted double x, unrestricted double y); |
57 void transform(unrestricted double a, unrestricted double b, unrestricted do
uble c, unrestricted double d, unrestricted double e, unrestricted double f); | 57 void transform(unrestricted double a, unrestricted double b, unrestricted do
uble c, unrestricted double d, unrestricted double e, unrestricted double f); |
58 void setTransform(unrestricted double a, unrestricted double b, unrestricted
double c, unrestricted double d, unrestricted double e, unrestricted double f); | 58 void setTransform(unrestricted double a, unrestricted double b, unrestricted
double c, unrestricted double d, unrestricted double e, unrestricted double f); |
59 void resetTransform(); | 59 void resetTransform(); |
60 | 60 |
61 // shadows | 61 // shadows |
62 attribute unrestricted double shadowOffsetX; | 62 attribute unrestricted double shadowOffsetX; |
63 attribute unrestricted double shadowOffsetY; | 63 attribute unrestricted double shadowOffsetY; |
64 attribute unrestricted double shadowBlur; | 64 attribute unrestricted double shadowBlur; |
65 attribute DOMString shadowColor; | 65 attribute DOMString shadowColor; |
| 66 |
| 67 // pixel manipulation |
| 68 [RaisesException] ImageData createImageData(ImageData imagedata); |
| 69 [RaisesException] ImageData createImageData(double sw, double sh); |
| 70 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do
uble sh); |
| 71 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y); |
| 72 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); |
66 }; | 73 }; |
67 | 74 |
68 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; | 75 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; |
OLD | NEW |