| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Used by WebGL to do GPU-GPU textures copy if possible. | 72 // Used by WebGL to do GPU-GPU textures copy if possible. |
| 73 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); | 73 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); |
| 74 | 74 |
| 75 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } | 75 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } |
| 76 | 76 |
| 77 bool hasAvailableVideoFrame() const; | 77 bool hasAvailableVideoFrame() const; |
| 78 | 78 |
| 79 KURL posterImageURL() const override; | 79 KURL posterImageURL() const override; |
| 80 | 80 |
| 81 // CanvasImageSource implementation | 81 // CanvasImageSource implementation |
| 82 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi
nt) const override; | 82 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi
nt, SnapshotReason) const override; |
| 83 bool isVideoElement() const override { return true; } | 83 bool isVideoElement() const override { return true; } |
| 84 bool wouldTaintOrigin(SecurityOrigin*) const override; | 84 bool wouldTaintOrigin(SecurityOrigin*) const override; |
| 85 FloatSize elementSize() const override; | 85 FloatSize elementSize() const override; |
| 86 const KURL& sourceURL() const override { return currentSrc(); } | 86 const KURL& sourceURL() const override { return currentSrc(); } |
| 87 | 87 |
| 88 bool isHTMLVideoElement() const override { return true; } | 88 bool isHTMLVideoElement() const override { return true; } |
| 89 | 89 |
| 90 // ImageBitmapSource implementation | 90 // ImageBitmapSource implementation |
| 91 IntSize bitmapSourceSize() const override; | 91 IntSize bitmapSourceSize() const override; |
| 92 ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy,
int sw, int sh, ExceptionState&) override; | 92 ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy,
int sw, int sh, ExceptionState&) override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 109 void setDisplayMode(DisplayMode) override; | 109 void setDisplayMode(DisplayMode) override; |
| 110 | 110 |
| 111 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 111 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 112 | 112 |
| 113 AtomicString m_defaultPosterURL; | 113 AtomicString m_defaultPosterURL; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 #endif // HTMLVideoElement_h | 118 #endif // HTMLVideoElement_h |
| OLD | NEW |