| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool usesOverlayFullscreenVideo() const override; | 68 bool usesOverlayFullscreenVideo() const override; |
| 69 | 69 |
| 70 // Statistics | 70 // Statistics |
| 71 unsigned webkitDecodedFrameCount() const; | 71 unsigned webkitDecodedFrameCount() const; |
| 72 unsigned webkitDroppedFrameCount() const; | 72 unsigned webkitDroppedFrameCount() const; |
| 73 | 73 |
| 74 // Used by canvas to gain raw pixel access | 74 // Used by canvas to gain raw pixel access |
| 75 void paintCurrentFrame(PaintCanvas*, const IntRect&, const PaintFlags*) const; | 75 void paintCurrentFrame(PaintCanvas*, const IntRect&, const PaintFlags*) const; |
| 76 | 76 |
| 77 // Used by WebGL to do GPU-GPU textures copy if possible. | 77 // Used by WebGL to do GPU-GPU textures copy if possible. |
| 78 // The caller is responsible for allocating the destination texture. | |
| 79 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, | 78 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, |
| 80 GLuint texture, | 79 GLuint texture, |
| 80 GLenum internalFormat, |
| 81 GLenum type, |
| 81 bool premultiplyAlpha, | 82 bool premultiplyAlpha, |
| 82 bool flipY); | 83 bool flipY); |
| 83 | 84 |
| 84 // Used by WebGL to do CPU-GPU texture upload if possible. | 85 // Used by WebGL to do CPU-GPU texture upload if possible. |
| 85 bool texImageImpl(WebMediaPlayer::TexImageFunctionID, | 86 bool texImageImpl(WebMediaPlayer::TexImageFunctionID, |
| 86 GLenum target, | 87 GLenum target, |
| 87 gpu::gles2::GLES2Interface*, | 88 gpu::gles2::GLES2Interface*, |
| 88 GLint level, | 89 GLint level, |
| 89 GLint internalformat, | 90 GLint internalformat, |
| 90 GLenum format, | 91 GLenum format, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 m_customControlsFullscreenDetector; | 161 m_customControlsFullscreenDetector; |
| 161 | 162 |
| 162 AtomicString m_defaultPosterURL; | 163 AtomicString m_defaultPosterURL; |
| 163 | 164 |
| 164 bool m_isPersistent = false; | 165 bool m_isPersistent = false; |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace blink | 168 } // namespace blink |
| 168 | 169 |
| 169 #endif // HTMLVideoElement_h | 170 #endif // HTMLVideoElement_h |
| OLD | NEW |