Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2476693002: WebGL & 16-bit video stream: upload to FLOAT texture. (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 enum LoadType { 98 enum LoadType {
99 LoadTypeURL = 0, 99 LoadTypeURL = 0,
100 LoadTypeMediaSource = 1, 100 LoadTypeMediaSource = 1,
101 LoadTypeMediaStream = 2, 101 LoadTypeMediaStream = 2,
102 LoadTypeMax = LoadTypeMediaStream, 102 LoadTypeMax = LoadTypeMediaStream,
103 }; 103 };
104 104
105 typedef WebString TrackId; 105 typedef WebString TrackId;
106 enum TrackType { TextTrack, AudioTrack, VideoTrack }; 106 enum TrackType { TextTrack, AudioTrack, VideoTrack };
107 107
108 enum TexImageFunctionID {
Ken Russell (switch to Gerrit) 2016/11/22 22:47:44 Add a comment that this must stay in sync with the
aleksandar.stojiljkovic 2016/11/27 20:44:00 Done - comment added to both places.
109 TexImage2D,
110 TexSubImage2D,
111 TexImage3D,
112 TexSubImage3D
113 };
114
108 virtual ~WebMediaPlayer() {} 115 virtual ~WebMediaPlayer() {}
109 116
110 virtual void load(LoadType, const WebMediaPlayerSource&, CORSMode) = 0; 117 virtual void load(LoadType, const WebMediaPlayerSource&, CORSMode) = 0;
111 118
112 // Playback controls. 119 // Playback controls.
113 virtual void play() = 0; 120 virtual void play() = 0;
114 virtual void pause() = 0; 121 virtual void pause() = 0;
115 virtual bool supportsSave() const = 0; 122 virtual bool supportsSave() const = 0;
116 virtual void seek(double seconds) = 0; 123 virtual void seek(double seconds) = 0;
117 virtual void setRate(double) = 0; 124 virtual void setRate(double) = 0;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 unsigned target, 207 unsigned target,
201 unsigned texture, 208 unsigned texture,
202 int level, 209 int level,
203 int xoffset, 210 int xoffset,
204 int yoffset, 211 int yoffset,
205 bool premultiplyAlpha, 212 bool premultiplyAlpha,
206 bool flipY) { 213 bool flipY) {
207 return false; 214 return false;
208 } 215 }
209 216
217 // Do tex(Sub)Image2D/3D for current frame. If it is not implemented for given
218 // parameters or fails, it returns false.
Ken Russell (switch to Gerrit) 2016/11/22 22:47:44 Please define whether this allocates the destinati
aleksandar.stojiljkovic 2016/11/27 20:44:00 Done.
219 virtual bool texImageImpl(TexImageFunctionID functionID,
220 unsigned target,
221 gpu::gles2::GLES2Interface* gl,
222 int level,
223 int internalformat,
224 unsigned format,
225 unsigned type,
226 int xoffset,
227 int yoffset,
228 int zoffset,
229 bool flipY,
230 bool premultiplyAlpha) {
231 return false;
232 }
233
210 virtual WebAudioSourceProvider* getAudioSourceProvider() { return nullptr; } 234 virtual WebAudioSourceProvider* getAudioSourceProvider() { return nullptr; }
211 235
212 virtual void setContentDecryptionModule( 236 virtual void setContentDecryptionModule(
213 WebContentDecryptionModule* cdm, 237 WebContentDecryptionModule* cdm,
214 WebContentDecryptionModuleResult result) { 238 WebContentDecryptionModuleResult result) {
215 result.completeWithError( 239 result.completeWithError(
216 WebContentDecryptionModuleExceptionNotSupportedError, 0, "ERROR"); 240 WebContentDecryptionModuleExceptionNotSupportedError, 0, "ERROR");
217 } 241 }
218 242
219 // Sets the poster image URL. 243 // Sets the poster image URL.
(...skipping 10 matching lines...) Expand all
230 254
231 virtual void enabledAudioTracksChanged( 255 virtual void enabledAudioTracksChanged(
232 const WebVector<TrackId>& enabledTrackIds) {} 256 const WebVector<TrackId>& enabledTrackIds) {}
233 // |selectedTrackId| is null if no track is selected. 257 // |selectedTrackId| is null if no track is selected.
234 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 258 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
235 }; 259 };
236 260
237 } // namespace blink 261 } // namespace blink
238 262
239 #endif 263 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698