OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TRACKER_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_TRACKER_H_ |
6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_TRACKER_H_ | 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_TRACKER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
11 #include "media/base/video_capture_types.h" | |
12 #include "media/capture/video/video_capture_buffer_handle.h" | 11 #include "media/capture/video/video_capture_buffer_handle.h" |
| 12 #include "media/capture/video_capture_types.h" |
13 #include "mojo/public/cpp/system/buffer.h" | 13 #include "mojo/public/cpp/system/buffer.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 // Keeps track of the state of a given mappable resource. Each | 17 // Keeps track of the state of a given mappable resource. Each |
18 // VideoCaptureBufferTracker carries indication of pixel format and storage | 18 // VideoCaptureBufferTracker carries indication of pixel format and storage |
19 // type. This is a base class for implementations using different kinds of | 19 // type. This is a base class for implementations using different kinds of |
20 // storage. | 20 // storage. |
21 class CAPTURE_EXPORT VideoCaptureBufferTracker { | 21 class CAPTURE_EXPORT VideoCaptureBufferTracker { |
22 public: | 22 public: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // the producer. | 65 // the producer. |
66 bool held_by_producer_; | 66 bool held_by_producer_; |
67 | 67 |
68 // Number of consumer processes which hold this VideoCaptureBufferTracker. | 68 // Number of consumer processes which hold this VideoCaptureBufferTracker. |
69 int consumer_hold_count_; | 69 int consumer_hold_count_; |
70 }; | 70 }; |
71 | 71 |
72 } // namespace content | 72 } // namespace content |
73 | 73 |
74 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_TRACKER_H_ | 74 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_BUFFER_TRACKER_H_ |
OLD | NEW |