Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl

Issue 2504773003: Support globalCompositeOperation in OffscreenCanvas (Closed)
Patch Set: better testing Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void restore(); // pop state stack and restore state 55 void restore(); // pop state stack and restore state
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
66 attribute DOMString globalCompositeOperation; // (default source-over)
67
65 // image smoothing 68 // image smoothing
66 attribute boolean imageSmoothingEnabled; // (default True) 69 attribute boolean imageSmoothingEnabled; // (default True)
67 attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low") 70 attribute ImageSmoothingQuality imageSmoothingQuality; // (default "low")
68 71
69 // shadows 72 // shadows
70 attribute unrestricted double shadowOffsetX; 73 attribute unrestricted double shadowOffsetX;
71 attribute unrestricted double shadowOffsetY; 74 attribute unrestricted double shadowOffsetY;
72 attribute unrestricted double shadowBlur; 75 attribute unrestricted double shadowBlur;
73 attribute DOMString shadowColor; 76 attribute DOMString shadowColor;
74 77
75 // pixel manipulation 78 // pixel manipulation
76 [RaisesException] ImageData createImageData(ImageData imagedata); 79 [RaisesException] ImageData createImageData(ImageData imagedata);
77 [RaisesException] ImageData createImageData(double sw, double sh); 80 [RaisesException] ImageData createImageData(double sw, double sh);
78 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do uble sh); 81 [RaisesException] ImageData getImageData(double sx, double sy, double sw, do uble sh);
79 [RaisesException] void putImageData(ImageData imagedata, double dx, double d y); 82 [RaisesException] void putImageData(ImageData imagedata, double dx, double d y);
80 [RaisesException] void putImageData(ImageData imagedata, double dx, double d y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); 83 [RaisesException] void putImageData(ImageData imagedata, double dx, double d y, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
81 84
82 [Exposed=Window] attribute DOMString filter; 85 [Exposed=Window] attribute DOMString filter;
83 }; 86 };
84 87
85 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; 88 OffscreenCanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698