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