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

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: WebGL video to texture support and readPixels from R16UI for CPU access Created 4 years, 4 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 void OnPause() override; 151 void OnPause() override;
152 void OnVolumeMultiplierUpdate(double multiplier) override; 152 void OnVolumeMultiplierUpdate(double multiplier) override;
153 153
154 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl, 154 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl,
155 unsigned int texture, 155 unsigned int texture,
156 unsigned int internal_format, 156 unsigned int internal_format,
157 unsigned int type, 157 unsigned int type,
158 bool premultiply_alpha, 158 bool premultiply_alpha,
159 bool flip_y) override; 159 bool flip_y) override;
160 160
161 bool texImageImpl(const char* functionID,
162 unsigned target,
163 gpu::gles2::GLES2Interface* gl,
164 int level,
165 int internalformat,
166 unsigned format,
167 unsigned type,
168 int xoffset,
169 int yoffset,
170 int zoffset,
171 bool flipY,
172 bool premultiplyAlpha) override;
173
161 private: 174 private:
162 friend class WebMediaPlayerMSTest; 175 friend class WebMediaPlayerMSTest;
163 176
164 // The callback for MediaStreamVideoRenderer to signal a new frame is 177 // The callback for MediaStreamVideoRenderer to signal a new frame is
165 // available. 178 // available.
166 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); 179 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame);
167 // Need repaint due to state change. 180 // Need repaint due to state change.
168 void RepaintInternal(); 181 void RepaintInternal();
169 182
170 // The callback for source to report error. 183 // The callback for source to report error.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // True if playback should be started upon the next call to OnShown(). Only 248 // True if playback should be started upon the next call to OnShown(). Only
236 // used on Android. 249 // used on Android.
237 bool should_play_upon_shown_; 250 bool should_play_upon_shown_;
238 251
239 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 252 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
240 }; 253 };
241 254
242 } // namespace content 255 } // namespace content
243 256
244 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 257 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698