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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 virtual MovieLoadType movieLoadType() const = 0; | 146 virtual MovieLoadType movieLoadType() const = 0; |
147 | 147 |
148 virtual double mediaTimeForTimeValue(double timeValue) const = 0; | 148 virtual double mediaTimeForTimeValue(double timeValue) const = 0; |
149 | 149 |
150 virtual unsigned decodedFrameCount() const = 0; | 150 virtual unsigned decodedFrameCount() const = 0; |
151 virtual unsigned droppedFrameCount() const = 0; | 151 virtual unsigned droppedFrameCount() const = 0; |
152 virtual unsigned audioDecodedByteCount() const = 0; | 152 virtual unsigned audioDecodedByteCount() const = 0; |
153 virtual unsigned videoDecodedByteCount() const = 0; | 153 virtual unsigned videoDecodedByteCount() const = 0; |
154 | 154 |
155 // Do a GPU-GPU textures copy if possible. | 155 // Do a GPU-GPU textures copy if possible. |
156 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed texture, unsigned level, unsigned internalFormat, bool premultiplyAlpha, bool
flipY) { return false; } | |
157 // TODO(jun.a.jiang@intel.com): once all clients switch to call this newer c
opyVideoTextureToPlatformTexture(...) with | |
158 // seven parameters, the old one would be removed. | |
159 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult
iplyAlpha, bool flipY) { return false; } | 156 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult
iplyAlpha, bool flipY) { return false; } |
160 | 157 |
161 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; } | 158 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; } |
162 | 159 |
163 // Returns whether keySystem is supported. If true, the result will be | 160 // Returns whether keySystem is supported. If true, the result will be |
164 // reported by an event. | 161 // reported by an event. |
165 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con
st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK
eySystemNotSupported; } | 162 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con
st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK
eySystemNotSupported; } |
166 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned
char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL
ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport
ed; } | 163 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned
char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL
ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport
ed; } |
167 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const
WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } | 164 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const
WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } |
168 | 165 |
169 // Instruct WebMediaPlayer to enter/exit fullscreen. | 166 // Instruct WebMediaPlayer to enter/exit fullscreen. |
170 virtual void enterFullscreen() { } | 167 virtual void enterFullscreen() { } |
171 virtual void exitFullscreen() { } | 168 virtual void exitFullscreen() { } |
172 // Returns true if the player can enter fullscreen. | 169 // Returns true if the player can enter fullscreen. |
173 virtual bool canEnterFullscreen() const { return false; } | 170 virtual bool canEnterFullscreen() const { return false; } |
174 }; | 171 }; |
175 | 172 |
176 } // namespace WebKit | 173 } // namespace WebKit |
177 | 174 |
178 #endif | 175 #endif |
OLD | NEW |