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

Side by Side Diff: content/public/renderer/media_stream_utils.h

Issue 1849003002: Add video frame refresh to MediaStream and VideoCapture stacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nick's PS3 comments (moving non-observer impl out of MSVideoSink interface). Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool is_remote, 47 bool is_remote,
48 bool is_readonly, 48 bool is_readonly,
49 blink::WebMediaStream* web_media_stream); 49 blink::WebMediaStream* web_media_stream);
50 50
51 // On success returns pointer to the current format of the given video track; 51 // On success returns pointer to the current format of the given video track;
52 // returns nullptr on failure (if the argument is invalid or if the format 52 // returns nullptr on failure (if the argument is invalid or if the format
53 // cannot be retrieved at the moment). 53 // cannot be retrieved at the moment).
54 CONTENT_EXPORT const media::VideoCaptureFormat* GetCurrentVideoTrackFormat( 54 CONTENT_EXPORT const media::VideoCaptureFormat* GetCurrentVideoTrackFormat(
55 const blink::WebMediaStreamTrack& video_track); 55 const blink::WebMediaStreamTrack& video_track);
56 56
57 // Requests that a refresh frame be sent "soon" (e.g., to resolve picture loss
58 // or quality issues).
59 CONTENT_EXPORT void RequestRefreshFrameFromVideoTrack(
60 const blink::WebMediaStreamTrack& video_track);
61
57 } // namespace content 62 } // namespace content
58 63
59 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_ 64 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_
OLDNEW
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/public/renderer/media_stream_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698