OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_CAPTURE_VIDEO_SHARED_MEMORY_BUFFER_HANDLE_H_ | |
6 #define MEDIA_CAPTURE_VIDEO_SHARED_MEMORY_BUFFER_HANDLE_H_ | |
7 | |
8 #include "media/capture/capture_export.h" | |
9 #include "media/capture/video/video_capture_buffer_handle.h" | |
10 | |
11 namespace media { | |
12 | |
13 class CAPTURE_EXPORT SharedMemoryBufferHandle | |
14 : public VideoCaptureBufferHandle { | |
15 public: | |
16 explicit SharedMemoryBufferHandle(base::SharedMemory* shared_memory, | |
17 size_t mapped_size); | |
18 ~SharedMemoryBufferHandle() override; | |
19 | |
20 size_t mapped_size() const override; | |
21 uint8_t* data() override; | |
emircan
2017/04/19 18:16:48
Can we also mark this method as const in the base
chfremer
2017/04/19 23:03:37
Done.
| |
22 const uint8_t* data() const override; | |
23 | |
24 private: | |
25 base::SharedMemory* shared_memory_; | |
emircan
2017/04/19 18:16:48
base::SharedMemory* const shared_memory_;
chfremer
2017/04/19 23:03:37
Done.
| |
26 size_t mapped_size_; | |
emircan
2017/04/19 18:16:48
const
chfremer
2017/04/19 23:03:37
Done.
| |
27 }; | |
28 | |
29 } // namespace media | |
30 | |
31 #endif // MEDIA_CAPTURE_VIDEO_SHARED_MEMORY_BUFFER_HANDLE_H_ | |
OLD | NEW |