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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 virtual bool didLoadingProgress() = 0; | 149 virtual bool didLoadingProgress() = 0; |
150 | 150 |
151 virtual bool hasSingleSecurityOrigin() const = 0; | 151 virtual bool hasSingleSecurityOrigin() const = 0; |
152 virtual bool didPassCORSAccessCheck() const = 0; | 152 virtual bool didPassCORSAccessCheck() const = 0; |
153 | 153 |
154 virtual double mediaTimeForTimeValue(double timeValue) const = 0; | 154 virtual double mediaTimeForTimeValue(double timeValue) const = 0; |
155 | 155 |
156 virtual unsigned decodedFrameCount() const = 0; | 156 virtual unsigned decodedFrameCount() const = 0; |
157 virtual unsigned droppedFrameCount() const = 0; | 157 virtual unsigned droppedFrameCount() const = 0; |
158 virtual unsigned corruptedFrameCount() const { return 0; } | 158 virtual unsigned corruptedFrameCount() const { return 0; } |
159 virtual unsigned audioDecodedByteCount() const = 0; | 159 virtual size_t audioDecodedByteCount() const = 0; |
160 virtual unsigned videoDecodedByteCount() const = 0; | 160 virtual size_t videoDecodedByteCount() const = 0; |
161 | 161 |
162 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo
de::Mode) = 0; | 162 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo
de::Mode) = 0; |
163 | 163 |
164 // TODO(dshwang): remove non-|target| version. crbug.com/349871 | 164 // TODO(dshwang): remove non-|target| version. crbug.com/349871 |
165 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool
flipY) { return false; } | 165 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool
flipY) { return false; } |
166 | 166 |
167 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it return
s false. | 167 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it return
s false. |
168 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed target, | 168 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign
ed target, |
169 unsigned texture, unsigned internalFormat, unsigned type, int level, | 169 unsigned texture, unsigned internalFormat, unsigned type, int level, |
170 bool premultiplyAlpha, bool flipY) { return false; } | 170 bool premultiplyAlpha, bool flipY) { return false; } |
(...skipping 19 matching lines...) Expand all Loading... |
190 virtual void exitedFullscreen() { } | 190 virtual void exitedFullscreen() { } |
191 | 191 |
192 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 192 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
193 // |selectedTrackId| is null if no track is selected. | 193 // |selectedTrackId| is null if no track is selected. |
194 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 194 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
195 }; | 195 }; |
196 | 196 |
197 } // namespace blink | 197 } // namespace blink |
198 | 198 |
199 #endif | 199 #endif |
OLD | NEW |