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/video/capture/linux/video_capture_device_chromeos.h" | 5 #include "media/video/capture/linux/video_capture_device_chromeos.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "ui/gfx/display.h" | 10 #include "ui/gfx/display.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 screen_observer_delegate_->RemoveObserver(); | 103 screen_observer_delegate_->RemoveObserver(); |
104 } | 104 } |
105 | 105 |
106 void VideoCaptureDeviceChromeOS::SetDisplayRotation( | 106 void VideoCaptureDeviceChromeOS::SetDisplayRotation( |
107 const gfx::Display& display) { | 107 const gfx::Display& display) { |
108 if (display.IsInternal()) | 108 if (display.IsInternal()) |
109 SetRotation(display.rotation() * 90); | 109 SetRotation(display.rotation() * 90); |
110 } | 110 } |
111 | 111 |
112 } // namespace media | 112 } // namespace media |
OLD | NEW |