| 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_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ |
| 6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ | 6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 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, |
| 35 int count); | 35 int count); |
| 36 | 36 |
| 37 // VideoCaptureBufferPool implementation. | 37 // VideoCaptureBufferPool implementation. |
| 38 mojo::ScopedSharedBufferHandle GetHandleForTransit(int buffer_id) override; | 38 mojo::ScopedSharedBufferHandle GetHandleForInterProcessTransit( |
| 39 std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle( | 39 int buffer_id) override; |
| 40 base::SharedMemoryHandle GetNonOwnedSharedMemoryHandleForLegacyIPC( |
| 41 int buffer_id) override; |
| 42 std::unique_ptr<VideoCaptureBufferHandle> GetHandleForInProcessAccess( |
| 40 int buffer_id) override; | 43 int buffer_id) override; |
| 41 int ReserveForProducer(const gfx::Size& dimensions, | 44 int ReserveForProducer(const gfx::Size& dimensions, |
| 42 media::VideoPixelFormat format, | 45 media::VideoPixelFormat format, |
| 43 media::VideoPixelStorage storage, | 46 media::VideoPixelStorage storage, |
| 44 int frame_feedback_id, | 47 int frame_feedback_id, |
| 45 int* buffer_id_to_drop) override; | 48 int* buffer_id_to_drop) override; |
| 46 void RelinquishProducerReservation(int buffer_id) override; | 49 void RelinquishProducerReservation(int buffer_id) override; |
| 47 int ResurrectLastForProducer(const gfx::Size& dimensions, | 50 int ResurrectLastForProducer(const gfx::Size& dimensions, |
| 48 media::VideoPixelFormat format, | 51 media::VideoPixelFormat format, |
| 49 media::VideoPixelStorage storage) override; | 52 media::VideoPixelStorage storage) override; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 84 |
| 82 const std::unique_ptr<VideoCaptureBufferTrackerFactory> | 85 const std::unique_ptr<VideoCaptureBufferTrackerFactory> |
| 83 buffer_tracker_factory_; | 86 buffer_tracker_factory_; |
| 84 | 87 |
| 85 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); | 88 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); |
| 86 }; | 89 }; |
| 87 | 90 |
| 88 } // namespace media | 91 } // namespace media |
| 89 | 92 |
| 90 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ | 93 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ |
| OLD | NEW |