OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 11 #include "webrtc/modules/desktop_capture/desktop_frame.h" |
12 | 12 |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include <string.h> | 15 #include <string.h> |
16 | 16 |
17 #include "webrtc/rtc_base/checks.h" | 17 #include "webrtc/base/checks.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 DesktopFrame::DesktopFrame(DesktopSize size, | 21 DesktopFrame::DesktopFrame(DesktopSize size, |
22 int stride, | 22 int stride, |
23 uint8_t* data, | 23 uint8_t* data, |
24 SharedMemory* shared_memory) | 24 SharedMemory* shared_memory) |
25 : data_(data), | 25 : data_(data), |
26 shared_memory_(shared_memory), | 26 shared_memory_(shared_memory), |
27 size_(size), | 27 size_(size), |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 : DesktopFrame(size, | 110 : DesktopFrame(size, |
111 stride, | 111 stride, |
112 reinterpret_cast<uint8_t*>(shared_memory->data()), | 112 reinterpret_cast<uint8_t*>(shared_memory->data()), |
113 shared_memory) {} | 113 shared_memory) {} |
114 | 114 |
115 SharedMemoryDesktopFrame::~SharedMemoryDesktopFrame() { | 115 SharedMemoryDesktopFrame::~SharedMemoryDesktopFrame() { |
116 delete shared_memory_; | 116 delete shared_memory_; |
117 } | 117 } |
118 | 118 |
119 } // namespace webrtc | 119 } // namespace webrtc |
OLD | NEW |