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

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

Issue 2410383002: VideoCapture: more migration IPC-->mojo, part 6 (Closed)
Patch Set: Comment correction Created 4 years, 2 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
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>
(...skipping 16 matching lines...) Expand all
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,
35 int count); 35 int count);
36 36
37 // Implementation of VideoCaptureBufferPool interface: 37 // VideoCaptureBufferPool implementation.
38 bool ShareToProcess(int buffer_id, 38 mojo::ScopedSharedBufferHandle GetHandleForTransit(int buffer_id) override;
39 base::ProcessHandle process_handle,
40 base::SharedMemoryHandle* new_handle) override;
41 std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle( 39 std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle(
42 int buffer_id) override; 40 int buffer_id) override;
43 int ReserveForProducer(const gfx::Size& dimensions, 41 int ReserveForProducer(const gfx::Size& dimensions,
44 media::VideoPixelFormat format, 42 media::VideoPixelFormat format,
45 media::VideoPixelStorage storage, 43 media::VideoPixelStorage storage,
46 int* buffer_id_to_drop) override; 44 int* buffer_id_to_drop) override;
47 void RelinquishProducerReservation(int buffer_id) override; 45 void RelinquishProducerReservation(int buffer_id) override;
48 int ResurrectLastForProducer(const gfx::Size& dimensions, 46 int ResurrectLastForProducer(const gfx::Size& dimensions,
49 media::VideoPixelFormat format, 47 media::VideoPixelFormat format,
50 media::VideoPixelStorage storage) override; 48 media::VideoPixelStorage storage) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 80
83 const std::unique_ptr<VideoCaptureBufferTrackerFactory> 81 const std::unique_ptr<VideoCaptureBufferTrackerFactory>
84 buffer_tracker_factory_; 82 buffer_tracker_factory_;
85 83
86 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); 84 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl);
87 }; 85 };
88 86
89 } // namespace media 87 } // namespace media
90 88
91 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ 89 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698