| 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 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef HTMLVideoElement_h | 26 #ifndef HTMLVideoElement_h |
| 27 #define HTMLVideoElement_h | 27 #define HTMLVideoElement_h |
| 28 | 28 |
| 29 #include "core/html/HTMLMediaElement.h" | 29 #include "core/html/HTMLMediaElement.h" |
| 30 #include "core/html/canvas/CanvasImageSource.h" | 30 #include "core/html/canvas/CanvasImageSource.h" |
| 31 #include "platform/graphics/GraphicsTypes3D.h" | 31 #include "platform/graphics/GraphicsTypes3D.h" |
| 32 | 32 |
| 33 class SkPaint; |
| 34 |
| 33 namespace blink { | 35 namespace blink { |
| 34 class WebGraphicsContext3D; | 36 class WebGraphicsContext3D; |
| 35 } | |
| 36 | |
| 37 namespace blink { | |
| 38 | |
| 39 class ExceptionState; | 37 class ExceptionState; |
| 40 class HTMLImageLoader; | 38 class HTMLImageLoader; |
| 41 class GraphicsContext; | 39 class GraphicsContext; |
| 42 | 40 |
| 43 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. | 41 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. |
| 44 // That header cannot be included directly due to a conflict with NPAPI headers. | 42 // That header cannot be included directly due to a conflict with NPAPI headers. |
| 45 // See crbug.com/328085. | 43 // See crbug.com/328085. |
| 46 typedef unsigned GLenum; | 44 typedef unsigned GLenum; |
| 47 typedef int GC3Dint; | 45 typedef int GC3Dint; |
| 48 | 46 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 59 void webkitEnterFullscreen(ExceptionState&); | 57 void webkitEnterFullscreen(ExceptionState&); |
| 60 void webkitExitFullscreen(); | 58 void webkitExitFullscreen(); |
| 61 bool webkitSupportsFullscreen(); | 59 bool webkitSupportsFullscreen(); |
| 62 bool webkitDisplayingFullscreen(); | 60 bool webkitDisplayingFullscreen(); |
| 63 | 61 |
| 64 // Statistics | 62 // Statistics |
| 65 unsigned webkitDecodedFrameCount() const; | 63 unsigned webkitDecodedFrameCount() const; |
| 66 unsigned webkitDroppedFrameCount() const; | 64 unsigned webkitDroppedFrameCount() const; |
| 67 | 65 |
| 68 // Used by canvas to gain raw pixel access | 66 // Used by canvas to gain raw pixel access |
| 69 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; | 67 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; |
| 70 | 68 |
| 71 // Used by WebGL to do GPU-GPU textures copy if possible. | 69 // Used by WebGL to do GPU-GPU textures copy if possible. |
| 72 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA
lpha, bool flipY); | 70 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA
lpha, bool flipY); |
| 73 | 71 |
| 74 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } | 72 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } |
| 75 | 73 |
| 76 KURL posterImageURL() const; | 74 KURL posterImageURL() const; |
| 77 | 75 |
| 78 bool hasAvailableVideoFrame() const; | 76 bool hasAvailableVideoFrame() const; |
| 79 | 77 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 108 virtual void setDisplayMode(DisplayMode) override; | 106 virtual void setDisplayMode(DisplayMode) override; |
| 109 | 107 |
| 110 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 108 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 111 | 109 |
| 112 AtomicString m_defaultPosterURL; | 110 AtomicString m_defaultPosterURL; |
| 113 }; | 111 }; |
| 114 | 112 |
| 115 } // namespace blink | 113 } // namespace blink |
| 116 | 114 |
| 117 #endif // HTMLVideoElement_h | 115 #endif // HTMLVideoElement_h |
| OLD | NEW |