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

Side by Side Diff: device/capture/video/fake_video_capture_device_factory.cc

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/fake_video_capture_device_factory.h" 5 #include "device/capture/video/fake_video_capture_device_factory.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_split.h" 9 #include "base/strings/string_split.h"
10 #include "base/strings/string_tokenizer.h" 10 #include "base/strings/string_tokenizer.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "media/base/media_switches.h" 14 #include "media/base/media_switches.h"
15 15
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if (base::StringToDouble(param.back(), &fps)) { 112 if (base::StringToDouble(param.back(), &fps)) {
113 frame_rate_ = 113 frame_rate_ =
114 std::max(kFakeCaptureMinFrameRate, static_cast<float>(fps)); 114 std::max(kFakeCaptureMinFrameRate, static_cast<float>(fps));
115 frame_rate_ = std::min(kFakeCaptureMaxFrameRate, frame_rate_); 115 frame_rate_ = std::min(kFakeCaptureMaxFrameRate, frame_rate_);
116 } 116 }
117 } 117 }
118 } 118 }
119 } 119 }
120 120
121 } // namespace media 121 } // namespace media
OLDNEW
« no previous file with comments | « device/capture/video/fake_video_capture_device_factory.h ('k') | device/capture/video/fake_video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698