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

Side by Side Diff: media/capture/video/linux/video_capture_device_chromeos.cc

Issue 2169013002: Change class VideoCaptureDevice::Name to struct VideoCaptureDeviceDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 4 years, 4 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/linux/video_capture_device_chromeos.h" 5 #include "media/capture/video/linux/video_capture_device_chromeos.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 VideoCaptureDeviceChromeOS* capture_device_; 91 VideoCaptureDeviceChromeOS* capture_device_;
92 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 92 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
93 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner_; 93 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner_;
94 DISALLOW_IMPLICIT_CONSTRUCTORS(ScreenObserverDelegate); 94 DISALLOW_IMPLICIT_CONSTRUCTORS(ScreenObserverDelegate);
95 }; 95 };
96 96
97 VideoCaptureDeviceChromeOS::VideoCaptureDeviceChromeOS( 97 VideoCaptureDeviceChromeOS::VideoCaptureDeviceChromeOS(
98 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 98 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
99 const Name& device_name) 99 const VideoCaptureDeviceDescriptor& device_descriptor)
100 : VideoCaptureDeviceLinux(device_name), 100 : VideoCaptureDeviceLinux(device_descriptor),
101 screen_observer_delegate_( 101 screen_observer_delegate_(
102 new ScreenObserverDelegate(this, ui_task_runner)) { 102 new ScreenObserverDelegate(this, ui_task_runner)) {}
103 }
104 103
105 VideoCaptureDeviceChromeOS::~VideoCaptureDeviceChromeOS() { 104 VideoCaptureDeviceChromeOS::~VideoCaptureDeviceChromeOS() {
106 screen_observer_delegate_->RemoveObserver(); 105 screen_observer_delegate_->RemoveObserver();
107 } 106 }
108 107
109 void VideoCaptureDeviceChromeOS::SetDisplayRotation( 108 void VideoCaptureDeviceChromeOS::SetDisplayRotation(
110 const display::Display& display) { 109 const display::Display& display) {
111 if (display.IsInternal()) 110 if (display.IsInternal())
112 SetRotation(display.rotation() * 90); 111 SetRotation(display.rotation() * 90);
113 } 112 }
114 113
115 } // namespace media 114 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698