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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.h

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests: cc, skcanvas_video_renderer, wrtcrecorder... Fake capture supports Y16. Created 4 years, 2 months 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void OnPause() override; 152 void OnPause() override;
153 void OnVolumeMultiplierUpdate(double multiplier) override; 153 void OnVolumeMultiplierUpdate(double multiplier) override;
154 154
155 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl, 155 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl,
156 unsigned int texture, 156 unsigned int texture,
157 unsigned int internal_format, 157 unsigned int internal_format,
158 unsigned int type, 158 unsigned int type,
159 bool premultiply_alpha, 159 bool premultiply_alpha,
160 bool flip_y) override; 160 bool flip_y) override;
161 161
162 bool texImageImpl(const char* functionID,
163 unsigned target,
164 gpu::gles2::GLES2Interface* gl,
165 int level,
166 int internalformat,
167 unsigned format,
168 unsigned type,
169 int xoffset,
170 int yoffset,
171 int zoffset,
172 bool flipY,
173 bool premultiplyAlpha) override;
174
162 private: 175 private:
163 friend class WebMediaPlayerMSTest; 176 friend class WebMediaPlayerMSTest;
164 177
165 // The callback for MediaStreamVideoRenderer to signal a new frame is 178 // The callback for MediaStreamVideoRenderer to signal a new frame is
166 // available. 179 // available.
167 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); 180 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame);
168 // Need repaint due to state change. 181 // Need repaint due to state change.
169 void RepaintInternal(); 182 void RepaintInternal();
170 183
171 // The callback for source to report error. 184 // The callback for source to report error.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // True if playback should be started upon the next call to OnShown(). Only 250 // True if playback should be started upon the next call to OnShown(). Only
238 // used on Android. 251 // used on Android.
239 bool should_play_upon_shown_; 252 bool should_play_upon_shown_;
240 253
241 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 254 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
242 }; 255 };
243 256
244 } // namespace content 257 } // namespace content
245 258
246 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 259 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698