OLD | NEW |
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> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
9 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
11 #include "ui/gfx/display.h" | 14 #include "ui/gfx/display.h" |
12 #include "ui/gfx/display_observer.h" | 15 #include "ui/gfx/display_observer.h" |
13 #include "ui/gfx/screen.h" | 16 #include "ui/gfx/screen.h" |
14 | 17 |
15 namespace media { | 18 namespace media { |
16 | 19 |
17 // This is a delegate class used to transfer Display change events from the UI | 20 // This is a delegate class used to transfer Display change events from the UI |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 screen_observer_delegate_->RemoveObserver(); | 108 screen_observer_delegate_->RemoveObserver(); |
106 } | 109 } |
107 | 110 |
108 void VideoCaptureDeviceChromeOS::SetDisplayRotation( | 111 void VideoCaptureDeviceChromeOS::SetDisplayRotation( |
109 const gfx::Display& display) { | 112 const gfx::Display& display) { |
110 if (display.IsInternal()) | 113 if (display.IsInternal()) |
111 SetRotation(display.rotation() * 90); | 114 SetRotation(display.rotation() * 90); |
112 } | 115 } |
113 | 116 |
114 } // namespace media | 117 } // namespace media |
OLD | NEW |