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

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

Issue 2398813002: Cleanup of video capture into GpuMemoryBuffer (Closed)
Patch Set: Rebase 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 20 matching lines...) Expand all
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 // Implementation of VideoCaptureBufferPool interface:
38 bool ShareToProcess(int buffer_id, 38 bool ShareToProcess(int buffer_id,
39 base::ProcessHandle process_handle, 39 base::ProcessHandle process_handle,
40 base::SharedMemoryHandle* new_handle) override; 40 base::SharedMemoryHandle* new_handle) override;
41 bool ShareToProcess2(int buffer_id,
42 int plane,
43 base::ProcessHandle process_handle,
44 gfx::GpuMemoryBufferHandle* new_handle) override;
45 std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle( 41 std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle(
46 int buffer_id) override; 42 int buffer_id) override;
47 int ReserveForProducer(const gfx::Size& dimensions, 43 int ReserveForProducer(const gfx::Size& dimensions,
48 media::VideoPixelFormat format, 44 media::VideoPixelFormat format,
49 media::VideoPixelStorage storage, 45 media::VideoPixelStorage storage,
50 int* buffer_id_to_drop) override; 46 int* buffer_id_to_drop) override;
51 void RelinquishProducerReservation(int buffer_id) override; 47 void RelinquishProducerReservation(int buffer_id) override;
52 int ResurrectLastForProducer(const gfx::Size& dimensions, 48 int ResurrectLastForProducer(const gfx::Size& dimensions,
53 media::VideoPixelFormat format, 49 media::VideoPixelFormat format,
54 media::VideoPixelStorage storage) override; 50 media::VideoPixelStorage storage) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 82
87 const std::unique_ptr<VideoCaptureBufferTrackerFactory> 83 const std::unique_ptr<VideoCaptureBufferTrackerFactory>
88 buffer_tracker_factory_; 84 buffer_tracker_factory_;
89 85
90 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); 86 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl);
91 }; 87 };
92 88
93 } // namespace media 89 } // namespace media
94 90
95 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ 91 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_
OLDNEW
« no previous file with comments | « media/capture/video/video_capture_buffer_pool.h ('k') | media/capture/video/video_capture_buffer_pool_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698