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

Side by Side Diff: media/capture/video/video_capture_device.cc

Issue 2686763002: [Mojo Video Capture] Split OnIncomingCapturedVideoFrame() to OnNewBuffer() and OnFrameReadyInBuffer( (Closed)
Patch Set: rebase Created 3 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/video_capture_device.h" 5 #include "media/capture/video/video_capture_device.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/i18n/timezone.h" 8 #include "base/i18n/timezone.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "media/base/media_switches.h" 12 #include "media/base/media_switches.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 VideoCaptureDevice::Client::Buffer::Buffer() : id_(0), frame_feedback_id_(0) {} 16 VideoCaptureDevice::Client::Buffer::Buffer() : id(0), frame_feedback_id(0) {}
17 17
18 VideoCaptureDevice::Client::Buffer::Buffer( 18 VideoCaptureDevice::Client::Buffer::Buffer(
19 int buffer_id, 19 int buffer_id,
20 int frame_feedback_id, 20 int frame_feedback_id,
21 std::unique_ptr<HandleProvider> handle_provider, 21 std::unique_ptr<HandleProvider> handle_provider,
22 std::unique_ptr<ScopedAccessPermission> access_permission) 22 std::unique_ptr<ScopedAccessPermission> access_permission)
23 : handle_provider_(std::move(handle_provider)), 23 : id(buffer_id),
24 access_permission_(std::move(access_permission)), 24 frame_feedback_id(frame_feedback_id),
25 id_(buffer_id), 25 handle_provider(std::move(handle_provider)),
26 frame_feedback_id_(frame_feedback_id) {} 26 access_permission(std::move(access_permission)) {}
27 27
28 VideoCaptureDevice::Client::Buffer::Buffer( 28 VideoCaptureDevice::Client::Buffer::Buffer(
29 VideoCaptureDevice::Client::Buffer&& other) = default; 29 VideoCaptureDevice::Client::Buffer&& other) = default;
30 30
31 VideoCaptureDevice::Client::Buffer::~Buffer() = default; 31 VideoCaptureDevice::Client::Buffer::~Buffer() = default;
32 32
33 VideoCaptureDevice::Client::Buffer& VideoCaptureDevice::Client::Buffer:: 33 VideoCaptureDevice::Client::Buffer& VideoCaptureDevice::Client::Buffer::
34 operator=(VideoCaptureDevice::Client::Buffer&& other) = default; 34 operator=(VideoCaptureDevice::Client::Buffer&& other) = default;
35 35
36 VideoCaptureDevice::~VideoCaptureDevice() {} 36 VideoCaptureDevice::~VideoCaptureDevice() {}
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 switch (params.power_line_frequency) { 69 switch (params.power_line_frequency) {
70 case media::PowerLineFrequency::FREQUENCY_50HZ: // fall through 70 case media::PowerLineFrequency::FREQUENCY_50HZ: // fall through
71 case media::PowerLineFrequency::FREQUENCY_60HZ: 71 case media::PowerLineFrequency::FREQUENCY_60HZ:
72 return params.power_line_frequency; 72 return params.power_line_frequency;
73 default: 73 default:
74 return GetPowerLineFrequencyForLocation(); 74 return GetPowerLineFrequencyForLocation();
75 } 75 }
76 } 76 }
77 77
78 } // namespace media 78 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/video_capture_device.h ('k') | media/capture/video/video_capture_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698