| 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 "remoting/codec/video_encoder_helper.h" | 5 #include "remoting/codec/video_encoder_helper.h" |
| 6 | 6 |
| 7 #include "remoting/proto/video.pb.h" | 7 #include "remoting/proto/video.pb.h" |
| 8 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 8 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 9 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 9 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| 10 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" | 10 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 rect->set_height(r.rect().height()); | 56 rect->set_height(r.rect().height()); |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 // Store frame DPI. | 60 // Store frame DPI. |
| 61 if (!frame.dpi().is_zero()) { | 61 if (!frame.dpi().is_zero()) { |
| 62 packet->mutable_format()->set_x_dpi(frame.dpi().x()); | 62 packet->mutable_format()->set_x_dpi(frame.dpi().x()); |
| 63 packet->mutable_format()->set_y_dpi(frame.dpi().y()); | 63 packet->mutable_format()->set_y_dpi(frame.dpi().y()); |
| 64 } | 64 } |
| 65 | 65 |
| 66 return packet.Pass(); | 66 return packet; |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace remoting | 69 } // namespace remoting |
| OLD | NEW |