| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements CanvasImageS
ource$IMPLEMENTS$NATIVESPEC { | 7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements CanvasImageS
ource$IMPLEMENTS$NATIVESPEC { |
| 8 $!MEMBERS | 8 $!MEMBERS |
| 9 /** An API for drawing on this canvas. */ | 9 /** An API for drawing on this canvas. */ |
| 10 $if DART2JS | 10 $if DART2JS |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 'preserveDrawingBuffer': preserveDrawingBuffer, | 32 'preserveDrawingBuffer': preserveDrawingBuffer, |
| 33 }; | 33 }; |
| 34 var context = getContext('webgl', options); | 34 var context = getContext('webgl', options); |
| 35 if (context == null) { | 35 if (context == null) { |
| 36 context = getContext('experimental-webgl', options); | 36 context = getContext('experimental-webgl', options); |
| 37 } | 37 } |
| 38 return context; | 38 return context; |
| 39 } | 39 } |
| 40 | 40 |
| 41 String toDataUrl([String type = 'image/png', num quality]) => | 41 String toDataUrl([String type = 'image/png', num quality]) => |
| 42 $dom_toDataUrl(type, quality); | 42 _toDataUrl(type, quality); |
| 43 } | 43 } |
| OLD | NEW |