blob: 7ff99155daf7899762170eb43f136cfa2e69c91b [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/capture/video_capturer_source.h"
namespace media {
// TODO(mcasas): VideoCapturerSource is implemented in other .dll(s) (e.g.
// content) in Windows component build. The current compiler fails to generate
// object files for this destructor if it's defined in the header file and that
// breaks linking. Consider removing this file when the compiler+linker is able
// to generate symbols across linking units.
VideoCapturerSource::~VideoCapturerSource() {}
void VideoCapturerSource::GetCurrentSupportedFormats(
int max_requested_width,
int max_requested_height,
double max_requested_frame_rate,
const VideoCaptureDeviceFormatsCB& callback) {
callback.Run(GetPreferredFormats());
}
} // namespace media