mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Kicks off a WebGL implementation
This commit is contained in:
parent
b2585bee4d
commit
c82485874d
23 changed files with 1326 additions and 165 deletions
|
@ -3,8 +3,8 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://www.whatwg.org/html/#htmlcanvaselement
|
||||
//typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
|
||||
// https://www.whatwg.org/html/#htmlcanvaselement
|
||||
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
|
||||
|
||||
interface HTMLCanvasElement : HTMLElement {
|
||||
[Pure]
|
||||
|
@ -12,8 +12,7 @@ interface HTMLCanvasElement : HTMLElement {
|
|||
[Pure]
|
||||
attribute unsigned long height;
|
||||
|
||||
//RenderingContext? getContext(DOMString contextId, any... arguments);
|
||||
CanvasRenderingContext2D? getContext(DOMString contextId);
|
||||
RenderingContext? getContext(DOMString contextId);
|
||||
//boolean probablySupportsContext(DOMString contextId, any... arguments);
|
||||
|
||||
//void setContext(RenderingContext context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue