| 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 // https://html.spec.whatwg.org/multipage/scripting.html#the-offscreen-2d-render
ing-context | 5 // https://html.spec.whatwg.org/multipage/scripting.html#the-offscreen-2d-render
ing-context |
| 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 | 56 |
| 57 // transformations (default transform is the identity matrix) | 57 // transformations (default transform is the identity matrix) |
| 58 void scale(unrestricted double x, unrestricted double y); | 58 void scale(unrestricted double x, unrestricted double y); |
| 59 void rotate(unrestricted double angle); | 59 void rotate(unrestricted double angle); |
| 60 void translate(unrestricted double x, unrestricted double y); | 60 void translate(unrestricted double x, unrestricted double y); |
| 61 void transform(unrestricted double a, unrestricted double b, unrestricted do
uble c, unrestricted double d, unrestricted double e, unrestricted double f); | 61 void transform(unrestricted double a, unrestricted double b, unrestricted do
uble c, unrestricted double d, unrestricted double e, unrestricted double f); |
| 62 void setTransform(unrestricted double a, unrestricted double b, unrestricted
double c, unrestricted double d, unrestricted double e, unrestricted double f); | 62 void setTransform(unrestricted double a, unrestricted double b, unrestricted
double c, unrestricted double d, unrestricted double e, unrestricted double f); |
| 63 void resetTransform(); | 63 void resetTransform(); |
| 64 | 64 |
| 65 // compositing | 65 // compositing |
| 66 attribute unrestricted double globalAlpha; // (default 1.0) |
| 66 attribute DOMString globalCompositeOperation; // (default source-over) | 67 attribute DOMString globalCompositeOperation; // (default source-over) |
| 67 | 68 |
| 68 // image smoothing | 69 // image smoothing |
| 69 attribute boolean imageSmoothingEnabled; // (default True) | 70 attribute boolean imageSmoothingEnabled; // (default True) |
| 70 attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low") | 71 attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low") |
| 71 | 72 |
| 72 // shadows | 73 // shadows |
| 73 attribute unrestricted double shadowOffsetX; | 74 attribute unrestricted double shadowOffsetX; |
| 74 attribute unrestricted double shadowOffsetY; | 75 attribute unrestricted double shadowOffsetY; |
| 75 attribute unrestricted double shadowBlur; | 76 attribute unrestricted double shadowBlur; |
| 76 attribute DOMString shadowColor; | 77 attribute DOMString shadowColor; |
| 77 | 78 |
| 78 // pixel manipulation | 79 // pixel manipulation |
| 79 [RaisesException] ImageData createImageData(ImageData imagedata); | 80 [RaisesException] ImageData createImageData(ImageData imagedata); |
| 80 [RaisesException] ImageData createImageData(double sw, double sh); | 81 [RaisesException] ImageData createImageData(double sw, double sh); |
| 81 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do
uble sh); | 82 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do
uble sh); |
| 82 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y); | 83 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y); |
| 83 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); | 84 [RaisesException] void putImageData(ImageData imagedata, double dx, double d
y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); |
| 84 | 85 |
| 85 [Exposed=Window] attribute DOMString filter; | 86 [Exposed=Window] attribute DOMString filter; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; | 89 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |