| 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 internal_format, |
| 81 GLenum format, |
| 82 GLenum type, |
| 81 bool premultiply_alpha, | 83 bool premultiply_alpha, |
| 82 bool flip_y); | 84 bool flip_y); |
| 83 | 85 |
| 84 // Used by WebGL to do CPU-GPU texture upload if possible. | 86 // Used by WebGL to do CPU-GPU texture upload if possible. |
| 85 bool TexImageImpl(WebMediaPlayer::TexImageFunctionID, | 87 bool TexImageImpl(WebMediaPlayer::TexImageFunctionID, |
| 86 GLenum target, | 88 GLenum target, |
| 87 gpu::gles2::GLES2Interface*, | 89 gpu::gles2::GLES2Interface*, |
| 88 GLint level, | 90 GLint level, |
| 89 GLint internalformat, | 91 GLint internalformat, |
| 90 GLenum format, | 92 GLenum format, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 custom_controls_fullscreen_detector_; | 162 custom_controls_fullscreen_detector_; |
| 161 | 163 |
| 162 AtomicString default_poster_url_; | 164 AtomicString default_poster_url_; |
| 163 | 165 |
| 164 bool is_persistent_ = false; | 166 bool is_persistent_ = false; |
| 165 }; | 167 }; |
| 166 | 168 |
| 167 } // namespace blink | 169 } // namespace blink |
| 168 | 170 |
| 169 #endif // HTMLVideoElement_h | 171 #endif // HTMLVideoElement_h |
| OLD | NEW |