| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_IMPL_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ |
| 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ | 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/files/file.h" | 12 #include "base/files/file.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/shared_memory.h" | 15 #include "base/memory/shared_memory.h" |
| 16 #include "base/process/process.h" | 16 #include "base/process/process.h" |
| 17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "media/base/video_capture_types.h" | |
| 20 #include "media/base/video_frame.h" | 19 #include "media/base/video_frame.h" |
| 21 #include "media/capture/capture_export.h" | 20 #include "media/capture/capture_export.h" |
| 22 #include "media/capture/video/video_capture_buffer_handle.h" | 21 #include "media/capture/video/video_capture_buffer_handle.h" |
| 23 #include "media/capture/video/video_capture_buffer_pool.h" | 22 #include "media/capture/video/video_capture_buffer_pool.h" |
| 24 #include "media/capture/video/video_capture_buffer_tracker_factory.h" | 23 #include "media/capture/video/video_capture_buffer_tracker_factory.h" |
| 24 #include "media/capture/video_capture_types.h" |
| 25 #include "ui/gfx/geometry/size.h" | 25 #include "ui/gfx/geometry/size.h" |
| 26 #include "ui/gfx/gpu_memory_buffer.h" | 26 #include "ui/gfx/gpu_memory_buffer.h" |
| 27 | 27 |
| 28 namespace media { | 28 namespace media { |
| 29 | 29 |
| 30 class CAPTURE_EXPORT VideoCaptureBufferPoolImpl | 30 class CAPTURE_EXPORT VideoCaptureBufferPoolImpl |
| 31 : public VideoCaptureBufferPool { | 31 : public VideoCaptureBufferPool { |
| 32 public: | 32 public: |
| 33 explicit VideoCaptureBufferPoolImpl( | 33 explicit VideoCaptureBufferPoolImpl( |
| 34 std::unique_ptr<VideoCaptureBufferTrackerFactory> buffer_tracker_factory, | 34 std::unique_ptr<VideoCaptureBufferTrackerFactory> buffer_tracker_factory, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 const std::unique_ptr<VideoCaptureBufferTrackerFactory> | 81 const std::unique_ptr<VideoCaptureBufferTrackerFactory> |
| 82 buffer_tracker_factory_; | 82 buffer_tracker_factory_; |
| 83 | 83 |
| 84 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); | 84 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace media | 87 } // namespace media |
| 88 | 88 |
| 89 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ | 89 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ |
| OLD | NEW |