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

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

Issue 2613793007: Revert of [Mojo Video Capture] Simplify media::VideoCaptureDevice::Client:Buffer to a struct (Closed)
Patch Set: Created 3 years, 11 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_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
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 GetHandleForInterProcessTransit( 38 mojo::ScopedSharedBufferHandle GetHandleForTransit(int buffer_id) override;
39 int buffer_id) override; 39 std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle(
40 std::unique_ptr<VideoCaptureBufferHandle> GetHandleForInProcessAccess(
41 int buffer_id) override; 40 int buffer_id) override;
42 int ReserveForProducer(const gfx::Size& dimensions, 41 int ReserveForProducer(const gfx::Size& dimensions,
43 media::VideoPixelFormat format, 42 media::VideoPixelFormat format,
44 media::VideoPixelStorage storage, 43 media::VideoPixelStorage storage,
45 int frame_feedback_id, 44 int frame_feedback_id,
46 int* buffer_id_to_drop) override; 45 int* buffer_id_to_drop) override;
47 void RelinquishProducerReservation(int buffer_id) override; 46 void RelinquishProducerReservation(int buffer_id) override;
48 int ResurrectLastForProducer(const gfx::Size& dimensions, 47 int ResurrectLastForProducer(const gfx::Size& dimensions,
49 media::VideoPixelFormat format, 48 media::VideoPixelFormat format,
50 media::VideoPixelStorage storage) override; 49 media::VideoPixelStorage storage) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 81
83 const std::unique_ptr<VideoCaptureBufferTrackerFactory> 82 const std::unique_ptr<VideoCaptureBufferTrackerFactory>
84 buffer_tracker_factory_; 83 buffer_tracker_factory_;
85 84
86 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl); 85 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureBufferPoolImpl);
87 }; 86 };
88 87
89 } // namespace media 88 } // namespace media
90 89
91 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_POOL_IMPL_H_ 90 #endif // MEDIA_CAPTURE_VIDEO_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