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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2787773002: Add GetPreferredFormats method to media::VideoCapturerSource. (Closed)
Patch Set: rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index e89859bdf7608b1f8ab35194e845fa42a6ad3fc7..882418a2599e69f406b439e6967f1d420a8db131 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -182,18 +182,14 @@ class MockVideoCapturerSource : public media::VideoCapturerSource {
MockVideoCapturerSource() = default;
~MockVideoCapturerSource() override {}
- void GetCurrentSupportedFormats(
- int max_requested_width,
- int max_requested_height,
- double max_requested_frame_rate,
- const VideoCaptureDeviceFormatsCB& callback) override {
+ media::VideoCaptureFormats GetPreferredFormats() override {
const int supported_width = 640;
const int supported_height = 480;
const float supported_framerate = 60.0;
- callback.Run(media::VideoCaptureFormats(
+ return media::VideoCaptureFormats(
1, media::VideoCaptureFormat(
gfx::Size(supported_width, supported_height),
- supported_framerate, media::PIXEL_FORMAT_I420)));
+ supported_framerate, media::PIXEL_FORMAT_I420));
}
void StartCapture(const media::VideoCaptureParams& params,
const VideoCaptureDeliverFrameCB& new_frame_callback,

Powered by Google App Engine
This is Rietveld 408576698