| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. | 43 // 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. | 44 // That header cannot be included directly due to a conflict with NPAPI headers. |
| 45 // See crbug.com/328085. | 45 // See crbug.com/328085. |
| 46 typedef unsigned GLenum; | 46 typedef unsigned GLenum; |
| 47 typedef int GC3Dint; | 47 typedef int GC3Dint; |
| 48 | 48 |
| 49 class HTMLVideoElement final : public HTMLMediaElement, public CanvasImageSource
{ | 49 class HTMLVideoElement final : public HTMLMediaElement, public CanvasImageSource
{ |
| 50 DEFINE_WRAPPERTYPEINFO(); | 50 DEFINE_WRAPPERTYPEINFO(); |
| 51 public: | 51 public: |
| 52 static PassRefPtr<HTMLVideoElement> create(Document&); | 52 static PassRefPtr<HTMLVideoElement> create(Document&); |
| 53 virtual void trace(Visitor*) override; | |
| 54 | 53 |
| 55 unsigned videoWidth() const; | 54 unsigned videoWidth() const; |
| 56 unsigned videoHeight() const; | 55 unsigned videoHeight() const; |
| 57 | 56 |
| 58 // Used by canvas to gain raw pixel access | 57 // Used by canvas to gain raw pixel access |
| 59 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; | 58 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; |
| 60 | 59 |
| 61 // Used by WebGL to do GPU-GPU textures copy if possible. | 60 // Used by WebGL to do GPU-GPU textures copy if possible. |
| 62 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi
ned in engine/WebCore/platform/graphics/MediaPlayer.h. | 61 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi
ned in engine/WebCore/platform/graphics/MediaPlayer.h. |
| 63 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA
lpha, bool flipY); | 62 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA
lpha, bool flipY); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 94 virtual void setDisplayMode(DisplayMode) override; | 93 virtual void setDisplayMode(DisplayMode) override; |
| 95 | 94 |
| 96 OwnPtr<HTMLImageLoader> m_imageLoader; | 95 OwnPtr<HTMLImageLoader> m_imageLoader; |
| 97 | 96 |
| 98 AtomicString m_defaultPosterURL; | 97 AtomicString m_defaultPosterURL; |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace blink | 100 } // namespace blink |
| 102 | 101 |
| 103 #endif // HTMLVideoElement_h | 102 #endif // HTMLVideoElement_h |
| OLD | NEW |