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 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // is deleted. | 84 // is deleted. |
85 uint8_t* const data_; | 85 uint8_t* const data_; |
86 SharedMemory* const shared_memory_; | 86 SharedMemory* const shared_memory_; |
87 | 87 |
88 DesktopRegion updated_region_; | 88 DesktopRegion updated_region_; |
89 DesktopVector dpi_; | 89 DesktopVector dpi_; |
90 int64_t capture_time_ms_; | 90 int64_t capture_time_ms_; |
91 rtc::scoped_ptr<DesktopRegion> shape_; | 91 rtc::scoped_ptr<DesktopRegion> shape_; |
92 | 92 |
93 private: | 93 private: |
94 DISALLOW_COPY_AND_ASSIGN(DesktopFrame); | 94 RTC_DISALLOW_COPY_AND_ASSIGN(DesktopFrame); |
95 }; | 95 }; |
96 | 96 |
97 // A DesktopFrame that stores data in the heap. | 97 // A DesktopFrame that stores data in the heap. |
98 class BasicDesktopFrame : public DesktopFrame { | 98 class BasicDesktopFrame : public DesktopFrame { |
99 public: | 99 public: |
100 explicit BasicDesktopFrame(DesktopSize size); | 100 explicit BasicDesktopFrame(DesktopSize size); |
101 ~BasicDesktopFrame() override; | 101 ~BasicDesktopFrame() override; |
102 | 102 |
103 // Creates a BasicDesktopFrame that contains copy of |frame|. | 103 // Creates a BasicDesktopFrame that contains copy of |frame|. |
104 static DesktopFrame* CopyOf(const DesktopFrame& frame); | 104 static DesktopFrame* CopyOf(const DesktopFrame& frame); |
105 | 105 |
106 private: | 106 private: |
107 DISALLOW_COPY_AND_ASSIGN(BasicDesktopFrame); | 107 RTC_DISALLOW_COPY_AND_ASSIGN(BasicDesktopFrame); |
108 }; | 108 }; |
109 | 109 |
110 // A DesktopFrame that stores data in shared memory. | 110 // A DesktopFrame that stores data in shared memory. |
111 class SharedMemoryDesktopFrame : public DesktopFrame { | 111 class SharedMemoryDesktopFrame : public DesktopFrame { |
112 public: | 112 public: |
113 // Takes ownership of |shared_memory|. | 113 // Takes ownership of |shared_memory|. |
114 SharedMemoryDesktopFrame(DesktopSize size, | 114 SharedMemoryDesktopFrame(DesktopSize size, |
115 int stride, | 115 int stride, |
116 SharedMemory* shared_memory); | 116 SharedMemory* shared_memory); |
117 ~SharedMemoryDesktopFrame() override; | 117 ~SharedMemoryDesktopFrame() override; |
118 | 118 |
119 private: | 119 private: |
120 DISALLOW_COPY_AND_ASSIGN(SharedMemoryDesktopFrame); | 120 RTC_DISALLOW_COPY_AND_ASSIGN(SharedMemoryDesktopFrame); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace webrtc | 123 } // namespace webrtc |
124 | 124 |
125 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_FRAME_H_ | 125 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_FRAME_H_ |
126 | 126 |
OLD | NEW |