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 19 matching lines...) Expand all Loading... | |
30 | 30 |
31 #ifndef WebMediaPlayer_h | 31 #ifndef WebMediaPlayer_h |
32 #define WebMediaPlayer_h | 32 #define WebMediaPlayer_h |
33 | 33 |
34 #include "WebCallbacks.h" | 34 #include "WebCallbacks.h" |
35 #include "WebCanvas.h" | 35 #include "WebCanvas.h" |
36 #include "WebContentDecryptionModule.h" | 36 #include "WebContentDecryptionModule.h" |
37 #include "WebMediaSource.h" | 37 #include "WebMediaSource.h" |
38 #include "WebSetSinkIdCallbacks.h" | 38 #include "WebSetSinkIdCallbacks.h" |
39 #include "WebString.h" | 39 #include "WebString.h" |
40 #include "WebTimeRange.h" | 40 #include "third_party/skia/include/core/SkPaint.h" |
Justin Novosad
2016/08/25 19:18:19
No need to include. Just forward-declare.
xidachen
2016/08/26 02:21:39
Done.
| |
41 #include "third_party/skia/include/core/SkXfermode.h" | |
42 | 41 |
43 namespace gpu { | 42 namespace gpu { |
44 namespace gles2 { | 43 namespace gles2 { |
45 class GLES2Interface; | 44 class GLES2Interface; |
46 } | 45 } |
47 } | 46 } |
48 | 47 |
49 namespace blink { | 48 namespace blink { |
50 | 49 |
51 class WebAudioSourceProvider; | 50 class WebAudioSourceProvider; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 virtual bool didPassCORSAccessCheck() const = 0; | 159 virtual bool didPassCORSAccessCheck() const = 0; |
161 | 160 |
162 virtual double mediaTimeForTimeValue(double timeValue) const = 0; | 161 virtual double mediaTimeForTimeValue(double timeValue) const = 0; |
163 | 162 |
164 virtual unsigned decodedFrameCount() const = 0; | 163 virtual unsigned decodedFrameCount() const = 0; |
165 virtual unsigned droppedFrameCount() const = 0; | 164 virtual unsigned droppedFrameCount() const = 0; |
166 virtual unsigned corruptedFrameCount() const { return 0; } | 165 virtual unsigned corruptedFrameCount() const { return 0; } |
167 virtual size_t audioDecodedByteCount() const = 0; | 166 virtual size_t audioDecodedByteCount() const = 0; |
168 virtual size_t videoDecodedByteCount() const = 0; | 167 virtual size_t videoDecodedByteCount() const = 0; |
169 | 168 |
170 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo de::Mode) = 0; | 169 virtual void paint(WebCanvas*, const WebRect&, const SkPaint*) = 0; |
171 | 170 |
172 // TODO(dshwang): remove non-|target| version. crbug.com/349871 | 171 // TODO(dshwang): remove non-|target| version. crbug.com/349871 |
173 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, unsigned texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; } | 172 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, unsigned texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; } |
174 | 173 |
175 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it return s false. | 174 // 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, | 175 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, unsigned target, |
177 unsigned texture, unsigned internalFormat, unsigned type, int level, | 176 unsigned texture, unsigned internalFormat, unsigned type, int level, |
178 bool premultiplyAlpha, bool flipY) { return false; } | 177 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. | 178 // 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, | 179 virtual bool copyVideoSubTextureToPlatformTexture(gpu::gles2::GLES2Interface *, unsigned target, |
(...skipping 17 matching lines...) Expand all Loading... | |
198 virtual void exitedFullscreen() { } | 197 virtual void exitedFullscreen() { } |
199 | 198 |
200 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } | 199 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } |
201 // |selectedTrackId| is null if no track is selected. | 200 // |selectedTrackId| is null if no track is selected. |
202 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 201 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
203 }; | 202 }; |
204 | 203 |
205 } // namespace blink | 204 } // namespace blink |
206 | 205 |
207 #endif | 206 #endif |
OLD | NEW |