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 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_SHARED_MEMORY_H_ | 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_SHARED_MEMORY_H_ |
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_SHARED_MEMORY_H_ | 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_SHARED_MEMORY_H_ |
13 | 13 |
14 #include <stddef.h> | 14 #include <stddef.h> |
15 | 15 |
16 #if defined(WEBRTC_WIN) | 16 #if defined(WEBRTC_WIN) |
17 #include <windows.h> | 17 #include <windows.h> |
18 #endif | 18 #endif |
19 | 19 |
20 #include <memory> | 20 #include <memory> |
21 | 21 |
22 #include "webrtc/base/constructormagic.h" | 22 #include "webrtc/rtc_base/constructormagic.h" |
23 #include "webrtc/base/thread_checker.h" | 23 #include "webrtc/rtc_base/thread_checker.h" |
24 #include "webrtc/typedefs.h" | 24 #include "webrtc/typedefs.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 // SharedMemory is a base class for shared memory. It stores all required | 28 // SharedMemory is a base class for shared memory. It stores all required |
29 // parameters of the buffer, but doesn't have any logic to allocate or destroy | 29 // parameters of the buffer, but doesn't have any logic to allocate or destroy |
30 // the actual buffer. DesktopCapturer consumers that need to use shared memory | 30 // the actual buffer. DesktopCapturer consumers that need to use shared memory |
31 // for video frames must extend this class with creation and destruction logic | 31 // for video frames must extend this class with creation and destruction logic |
32 // specific for the target platform and then call | 32 // specific for the target platform and then call |
33 // DesktopCapturer::SetSharedMemoryFactory(). | 33 // DesktopCapturer::SetSharedMemoryFactory(). |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual std::unique_ptr<SharedMemory> CreateSharedMemory(size_t size) = 0; | 74 virtual std::unique_ptr<SharedMemory> CreateSharedMemory(size_t size) = 0; |
75 | 75 |
76 private: | 76 private: |
77 RTC_DISALLOW_COPY_AND_ASSIGN(SharedMemoryFactory); | 77 RTC_DISALLOW_COPY_AND_ASSIGN(SharedMemoryFactory); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace webrtc | 80 } // namespace webrtc |
81 | 81 |
82 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_SHARED_MEMORY_H_ | 82 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_SHARED_MEMORY_H_ |
83 | 83 |
OLD | NEW |