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

Side by Side Diff: media/capture/video_capturer_source.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 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 #include "media/capture/video_capturer_source.h" 5 #include "media/capture/video_capturer_source.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 // TODO(mcasas): VideoCapturerSource is implemented in other .dll(s) (e.g. 9 // TODO(mcasas): VideoCapturerSource is implemented in other .dll(s) (e.g.
10 // content) in Windows component build. The current compiler fails to generate 10 // content) in Windows component build. The current compiler fails to generate
11 // object files for this destructor if it's defined in the header file and that 11 // object files for this destructor if it's defined in the header file and that
12 // breaks linking. Consider removing this file when the compiler+linker is able 12 // breaks linking. Consider removing this file when the compiler+linker is able
13 // to generate symbols across linking units. 13 // to generate symbols across linking units.
14 VideoCapturerSource::~VideoCapturerSource() {} 14 VideoCapturerSource::~VideoCapturerSource() {}
15 15
16 void VideoCapturerSource::GetCurrentSupportedFormats(
17 int max_requested_width,
18 int max_requested_height,
19 double max_requested_frame_rate,
20 const VideoCaptureDeviceFormatsCB& callback) {
21 callback.Run(GetPreferredFormats());
22 }
23
16 } // namespace media 24 } // namespace media
OLDNEW
« media/capture/video_capturer_source.h ('K') | « media/capture/video_capturer_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698