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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 unsigned target, | 199 unsigned target, |
200 unsigned texture, | 200 unsigned texture, |
201 int level, | 201 int level, |
202 int xoffset, | 202 int xoffset, |
203 int yoffset, | 203 int yoffset, |
204 bool premultiplyAlpha, | 204 bool premultiplyAlpha, |
205 bool flipY) { | 205 bool flipY) { |
206 return false; | 206 return false; |
207 } | 207 } |
208 | 208 |
| 209 // Do tex(Sub)Image2D/3D for current frame. If it is not implemented for given |
| 210 // parameters or fails, it returns false. |
| 211 virtual bool texImageImpl(const char* functionID, |
| 212 unsigned target, |
| 213 gpu::gles2::GLES2Interface* gl, |
| 214 int level, |
| 215 int internalformat, |
| 216 unsigned format, |
| 217 unsigned type, |
| 218 int xoffset, |
| 219 int yoffset, |
| 220 int zoffset, |
| 221 bool flipY, |
| 222 bool premultiplyAlpha) { |
| 223 return false; |
| 224 } |
| 225 |
209 virtual WebAudioSourceProvider* getAudioSourceProvider() { return nullptr; } | 226 virtual WebAudioSourceProvider* getAudioSourceProvider() { return nullptr; } |
210 | 227 |
211 virtual void setContentDecryptionModule( | 228 virtual void setContentDecryptionModule( |
212 WebContentDecryptionModule* cdm, | 229 WebContentDecryptionModule* cdm, |
213 WebContentDecryptionModuleResult result) { | 230 WebContentDecryptionModuleResult result) { |
214 result.completeWithError( | 231 result.completeWithError( |
215 WebContentDecryptionModuleExceptionNotSupportedError, 0, "ERROR"); | 232 WebContentDecryptionModuleExceptionNotSupportedError, 0, "ERROR"); |
216 } | 233 } |
217 | 234 |
218 // Sets the poster image URL. | 235 // Sets the poster image URL. |
(...skipping 10 matching lines...) Expand all Loading... |
229 | 246 |
230 virtual void enabledAudioTracksChanged( | 247 virtual void enabledAudioTracksChanged( |
231 const WebVector<TrackId>& enabledTrackIds) {} | 248 const WebVector<TrackId>& enabledTrackIds) {} |
232 // |selectedTrackId| is null if no track is selected. | 249 // |selectedTrackId| is null if no track is selected. |
233 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} | 250 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} |
234 }; | 251 }; |
235 | 252 |
236 } // namespace blink | 253 } // namespace blink |
237 | 254 |
238 #endif | 255 #endif |
OLD | NEW |