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

Side by Side Diff: tools/dom/src/CanvasImageSource.dart

Issue 12941008: Unrevert https://codereview.chromium.org/12722009/ (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed the status with individual config. Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « tests/html/small.webm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 html; 5 part of html;
6 6
7 /** 7 /**
8 * An object that can be drawn to a [CanvasRenderingContext2D] object with 8 * An object that can be drawn to a [CanvasRenderingContext2D] object with
9 * [CanvasRenderingContext2D.drawImage], 9 * [CanvasRenderingContext2D.drawImage],
10 * [CanvasRenderingContext2D.drawImageRect], 10 * [CanvasRenderingContext2D.drawImageRect],
11 * [CanvasRenderingContext2D.drawImageScaled], or 11 * [CanvasRenderingContext2D.drawImageScaled], or
12 * [CanvasRenderingContext2D.drawImageScaledFromSource]. 12 * [CanvasRenderingContext2D.drawImageScaledFromSource].
13 * 13 *
14 * If the CanvasImageSource is an [ImageElement] then the element's image is 14 * If the CanvasImageSource is an [ImageElement] then the element's image is
15 * used. If the [ImageElement] is an animated image, then the poster frame is 15 * used. If the [ImageElement] is an animated image, then the poster frame is
16 * used. If there is no poster frame, then the first frame of animation is used. 16 * used. If there is no poster frame, then the first frame of animation is used.
17 * 17 *
18 * If the CanvasImageSource is a [VideoElement] then the frame at the current 18 * If the CanvasImageSource is a [VideoElement] then the frame at the current
19 * playback position is used as the image. 19 * playback position is used as the image.
20 * 20 *
21 * If the CanvasImageSource is a [CanvasElement] then the element's bitmap is 21 * If the CanvasImageSource is a [CanvasElement] then the element's bitmap is
22 * used. 22 * used.
23 * 23 *
24 * ** Note: ** Currently, all versions of Internet Explorer do not support
25 * drawing a VideoElement to a canvas. Also, you may experience problems drawing
26 * a video to a canvas in Firefox if the source of the video is a data URL.
27 *
24 * See also: 28 * See also:
25 * 29 *
26 * * [CanvasImageSource](http://www.whatwg.org/specs/web-apps/current-work/mult ipage/the-canvas-element.html#image-sources-for-2d-rendering-contexts) 30 * * [CanvasImageSource](http://www.whatwg.org/specs/web-apps/current-work/mult ipage/the-canvas-element.html#image-sources-for-2d-rendering-contexts)
27 * from the WHATWG. 31 * from the WHATWG.
28 * * [drawImage](http://www.whatwg.org/specs/web-apps/current-work/multipage/th e-canvas-element.html#dom-context-2d-drawimage) 32 * * [drawImage](http://www.whatwg.org/specs/web-apps/current-work/multipage/th e-canvas-element.html#dom-context-2d-drawimage)
29 * from the WHATWG. 33 * from the WHATWG.
30 */ 34 */
31 abstract class CanvasImageSource {} 35 abstract class CanvasImageSource {}
OLDNEW
« no previous file with comments | « tests/html/small.webm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698