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