OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it return
s false. | 175 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it return
s false. |
176 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
unsigned target, | 176 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
unsigned target, |
177 unsigned texture, unsigned internalFormat, unsigned type, int level, | 177 unsigned texture, unsigned internalFormat, unsigned type, int level, |
178 bool premultiplyAlpha, bool flipY) { return false; } | 178 bool premultiplyAlpha, bool flipY) { return false; } |
179 // Copy sub video frame texture to |texture|. If the copy is impossible or f
ails, it returns false. | 179 // Copy sub video frame texture to |texture|. If the copy is impossible or f
ails, it returns false. |
180 virtual bool copyVideoSubTextureToPlatformTexture(gpu::gles2::GLES2Interface
*, unsigned target, | 180 virtual bool copyVideoSubTextureToPlatformTexture(gpu::gles2::GLES2Interface
*, unsigned target, |
181 unsigned texture, int level, int xoffset, int yoffset, bool premultiplyA
lpha, | 181 unsigned texture, int level, int xoffset, int yoffset, bool premultiplyA
lpha, |
182 bool flipY) { return false; } | 182 bool flipY) { return false; } |
183 | 183 |
| 184 // Do tex(Sub)Image2D/3D for current frame. If it is not implemented for giv
en parameters or fails, it returns false. |
| 185 virtual bool texImageImpl(const char* functionID, unsigned target, |
| 186 gpu::gles2::GLES2Interface* gl, int level, int internalformat, unsigned
format, |
| 187 unsigned type, int xoffset, int yoffset, int zoffset, bool flipY, |
| 188 bool premultiplyAlpha) { return false; } |
| 189 |
184 virtual WebAudioSourceProvider* getAudioSourceProvider() { return nullptr; } | 190 virtual WebAudioSourceProvider* getAudioSourceProvider() { return nullptr; } |
185 | 191 |
186 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web
ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry
ptionModuleExceptionNotSupportedError, 0, "ERROR"); } | 192 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web
ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry
ptionModuleExceptionNotSupportedError, 0, "ERROR"); } |
187 | 193 |
188 // Sets the poster image URL. | 194 // Sets the poster image URL. |
189 virtual void setPoster(const WebURL& poster) { } | 195 virtual void setPoster(const WebURL& poster) { } |
190 | 196 |
191 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When | 197 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When |
192 // this is true, the video layer will be removed from the layer tree when | 198 // this is true, the video layer will be removed from the layer tree when |
193 // entering fullscreen, and the WebMediaPlayer is responsible for displaying | 199 // entering fullscreen, and the WebMediaPlayer is responsible for displaying |
194 // the video in enteredFullscreen(). | 200 // the video in enteredFullscreen(). |
195 virtual bool supportsOverlayFullscreenVideo() { return false; } | 201 virtual bool supportsOverlayFullscreenVideo() { return false; } |
196 // Inform WebMediaPlayer when the element has entered/exited fullscreen. | 202 // Inform WebMediaPlayer when the element has entered/exited fullscreen. |
197 virtual void enteredFullscreen() { } | 203 virtual void enteredFullscreen() { } |
198 virtual void exitedFullscreen() { } | 204 virtual void exitedFullscreen() { } |
199 | 205 |
200 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 206 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
201 // |selectedTrackId| is null if no track is selected. | 207 // |selectedTrackId| is null if no track is selected. |
202 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 208 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
203 }; | 209 }; |
204 | 210 |
205 } // namespace blink | 211 } // namespace blink |
206 | 212 |
207 #endif | 213 #endif |
OLD | NEW |