OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |