OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_H_ |
6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_H_ | 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "media/base/video_capture_types.h" | |
10 #include "media/capture/capture_export.h" | 9 #include "media/capture/capture_export.h" |
| 10 #include "media/capture/video_capture_types.h" |
11 #include "mojo/public/cpp/system/buffer.h" | 11 #include "mojo/public/cpp/system/buffer.h" |
12 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
13 #include "ui/gfx/gpu_memory_buffer.h" | 13 #include "ui/gfx/gpu_memory_buffer.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 class VideoCaptureBufferHandle; | 17 class VideoCaptureBufferHandle; |
18 | 18 |
19 // A thread-safe class that does the bookkeeping and lifetime management for a | 19 // A thread-safe class that does the bookkeeping and lifetime management for a |
20 // pool of pixel buffers cycled between an in-process producer (e.g. a | 20 // pool of pixel buffers cycled between an in-process producer (e.g. a |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 protected: | 100 protected: |
101 virtual ~VideoCaptureBufferPool() {} | 101 virtual ~VideoCaptureBufferPool() {} |
102 | 102 |
103 private: | 103 private: |
104 friend class base::RefCountedThreadSafe<VideoCaptureBufferPool>; | 104 friend class base::RefCountedThreadSafe<VideoCaptureBufferPool>; |
105 }; | 105 }; |
106 | 106 |
107 } // namespace media | 107 } // namespace media |
108 | 108 |
109 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_H_ | 109 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_H_ |
OLD | NEW |