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 std::unique_ptr<VideoCaptureBufferHandle> GetHandleForInProcessAccess( |
40 int buffer_id) override; | 41 int buffer_id) override; |
41 int ReserveForProducer(const gfx::Size& dimensions, | 42 int ReserveForProducer(const gfx::Size& dimensions, |
42 media::VideoPixelFormat format, | 43 media::VideoPixelFormat format, |
43 media::VideoPixelStorage storage, | 44 media::VideoPixelStorage storage, |
44 int frame_feedback_id, | 45 int frame_feedback_id, |
45 int* buffer_id_to_drop) override; | 46 int* buffer_id_to_drop) override; |
46 void RelinquishProducerReservation(int buffer_id) override; | 47 void RelinquishProducerReservation(int buffer_id) override; |
47 int ResurrectLastForProducer(const gfx::Size& dimensions, | 48 int ResurrectLastForProducer(const gfx::Size& dimensions, |
48 media::VideoPixelFormat format, | 49 media::VideoPixelFormat format, |
49 media::VideoPixelStorage storage) override; | 50 media::VideoPixelStorage storage) override; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 82 |
82 const std::unique_ptr<VideoCaptureBufferTrackerFactory> | 83 const std::unique_ptr<VideoCaptureBufferTrackerFactory> |
83 buffer_tracker_factory_; | 84 buffer_tracker_factory_; |
84 | 85 |
85 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); | 86 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace media | 89 } // namespace media |
89 | 90 |
90 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ | 91 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ |
OLD | NEW |