Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Add wrapper for canvas and its contexts #274

Merged
merged 1 commit into from
Oct 15, 2013
Merged

Conversation

arv
Copy link
Contributor

@arv arv commented Oct 15, 2013

This wraps HTMLCanvasElement so that we can return wrapped CanvasRenderingContext2D and WebGLRenderingContext. The context methods that take an HTMLElement are then wrapped to unwrap that argument.

Fixes #178

@dfreedm
Copy link
Contributor

dfreedm commented Oct 15, 2013

Nit: Should there be some tests with "experimental-webgl" getContext?
Safari 6 supports that through a flag.

LGTM

@arv
Copy link
Contributor Author

arv commented Oct 15, 2013

Not sure if that is worth testing. It will work if no matter what since experimental-webgl returns the same interface.

arv added a commit that referenced this pull request Oct 15, 2013
Add wrapper for canvas and its contexts
@arv arv merged commit 8842682 into googlearchive:master Oct 15, 2013
@arv arv deleted the canvas branch October 15, 2013 22:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants