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

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

Issue 2326633002: Adds filter support for offscreen canvas (Closed)
Patch Set: Working version of filters on offscreen canvas Created 4 years, 3 months 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 // 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 28 matching lines...) Expand all
39 39
40 // Line caps/joins 40 // Line caps/joins
41 attribute unrestricted double lineWidth; // (default 1) 41 attribute unrestricted double lineWidth; // (default 1)
42 attribute DOMString lineCap; // "butt", "round", "square" (default "butt") 42 attribute DOMString lineCap; // "butt", "round", "square" (default "butt")
43 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") 43 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter")
44 attribute unrestricted double miterLimit; // (default 10) 44 attribute unrestricted double miterLimit; // (default 10)
45 45
46 // dashed lines 46 // dashed lines
47 void setLineDash(sequence<unrestricted double> dash); 47 void setLineDash(sequence<unrestricted double> dash);
48 sequence<unrestricted double> getLineDash(); 48 sequence<unrestricted double> getLineDash();
49 attribute unrestricted double lineDashOffset; 49 attribute unrestricted double lineDashOffset;
50 50
51 // state 51 // state
52 void save(); // push state on state stack 52 void save(); // push state on state stack
53 void restore(); // pop state stack and restore state 53 void restore(); // pop state stack and restore state
54 54
55 // transformations (default transform is the identity matrix) 55 // transformations (default transform is the identity matrix)
56 void scale(unrestricted double x, unrestricted double y); 56 void scale(unrestricted double x, unrestricted double y);
57 void rotate(unrestricted double angle); 57 void rotate(unrestricted double angle);
58 void translate(unrestricted double x, unrestricted double y); 58 void translate(unrestricted double x, unrestricted double y);
59 void transform(unrestricted double a, unrestricted double b, unrestricted do uble c, unrestricted double d, unrestricted double e, unrestricted double f); 59 void transform(unrestricted double a, unrestricted double b, unrestricted do uble c, unrestricted double d, unrestricted double e, unrestricted double f);
(...skipping 10 matching lines...) Expand all
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 79
80 [Exposed=Window] attribute DOMString filter; 80 attribute DOMString filter;
81 }; 81 };
82 82
83 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; 83 OffscreenCanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698