| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 bool usesOverlayFullscreenVideo() const override; | 65 bool usesOverlayFullscreenVideo() const override; |
| 66 | 66 |
| 67 // Statistics | 67 // Statistics |
| 68 unsigned webkitDecodedFrameCount() const; | 68 unsigned webkitDecodedFrameCount() const; |
| 69 unsigned webkitDroppedFrameCount() const; | 69 unsigned webkitDroppedFrameCount() const; |
| 70 | 70 |
| 71 // Used by canvas to gain raw pixel access | 71 // Used by canvas to gain raw pixel access |
| 72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; | 72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; |
| 73 | 73 |
| 74 // Used by WebGL to do GPU-GPU textures copy if possible. | 74 // Used by WebGL to do GPU-GPU textures copy if possible. |
| 75 // The caller is responsible for allocating the destination texture. |
| 75 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, | 76 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, |
| 76 GLuint texture, | 77 GLuint texture, |
| 77 GLenum internalFormat, | |
| 78 GLenum type, | |
| 79 bool premultiplyAlpha, | 78 bool premultiplyAlpha, |
| 80 bool flipY); | 79 bool flipY); |
| 81 | 80 |
| 82 // Used by WebGL to do CPU-GPU texture upload if possible. | 81 // Used by WebGL to do CPU-GPU texture upload if possible. |
| 83 bool texImageImpl(WebMediaPlayer::TexImageFunctionID, | 82 bool texImageImpl(WebMediaPlayer::TexImageFunctionID, |
| 84 GLenum target, | 83 GLenum target, |
| 85 gpu::gles2::GLES2Interface*, | 84 gpu::gles2::GLES2Interface*, |
| 86 GLint level, | 85 GLint level, |
| 87 GLint internalformat, | 86 GLint internalformat, |
| 88 GLenum format, | 87 GLenum format, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void setDisplayMode(DisplayMode) override; | 143 void setDisplayMode(DisplayMode) override; |
| 145 | 144 |
| 146 Member<HTMLImageLoader> m_imageLoader; | 145 Member<HTMLImageLoader> m_imageLoader; |
| 147 | 146 |
| 148 AtomicString m_defaultPosterURL; | 147 AtomicString m_defaultPosterURL; |
| 149 }; | 148 }; |
| 150 | 149 |
| 151 } // namespace blink | 150 } // namespace blink |
| 152 | 151 |
| 153 #endif // HTMLVideoElement_h | 152 #endif // HTMLVideoElement_h |
| OLD | NEW |