Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: media/capture/video/shared_memory_buffer_handle.h

Issue 2818513003: [Mojo Video Capture] Adapt video_capture service to refactored video capture stack (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698