| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 typedef base::Callback<void(const gpu::SyncToken& sync_token, | 111 typedef base::Callback<void(const gpu::SyncToken& sync_token, |
| 112 double consumer_resource_utilization)> | 112 double consumer_resource_utilization)> |
| 113 BufferFinishedCallback; | 113 BufferFinishedCallback; |
| 114 | 114 |
| 115 // VideoCaptureMessageFilter::Delegate interface. | 115 // VideoCaptureMessageFilter::Delegate interface. |
| 116 void OnBufferCreated(base::SharedMemoryHandle handle, | 116 void OnBufferCreated(base::SharedMemoryHandle handle, |
| 117 int length, | 117 int length, |
| 118 int buffer_id) override; | 118 int buffer_id) override; |
| 119 void OnBufferCreated2(const std::vector<gfx::GpuMemoryBufferHandle>& handles, | 119 void OnBufferCreated2(const std::vector<gfx::GpuMemoryBufferHandle>& handles, |
| 120 const gfx::Size& size, | 120 const gfx::Size& size, |
| 121 media::VideoPixelFormat format, |
| 121 int buffer_id) override; | 122 int buffer_id) override; |
| 122 void OnBufferDestroyed(int buffer_id) override; | 123 void OnBufferDestroyed(int buffer_id) override; |
| 123 void OnBufferReceived(int buffer_id, | 124 void OnBufferReceived(int buffer_id, |
| 124 base::TimeDelta timestamp, | 125 base::TimeDelta timestamp, |
| 125 const base::DictionaryValue& metadata, | 126 const base::DictionaryValue& metadata, |
| 126 media::VideoPixelFormat pixel_format, | 127 media::VideoPixelFormat pixel_format, |
| 127 media::VideoFrame::StorageType storage_type, | 128 media::VideoFrame::StorageType storage_type, |
| 128 const gfx::Size& coded_size, | 129 const gfx::Size& coded_size, |
| 129 const gfx::Rect& visible_rect) override; | 130 const gfx::Rect& visible_rect) override; |
| 130 void OnStateChanged(VideoCaptureState state) override; | 131 void OnStateChanged(VideoCaptureState state) override; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // in |client_buffers_|. | 202 // in |client_buffers_|. |
| 202 // NOTE: Weak pointers must be invalidated before all other member variables. | 203 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 203 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; | 204 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; |
| 204 | 205 |
| 205 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); | 206 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace content | 209 } // namespace content |
| 209 | 210 |
| 210 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 211 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| OLD | NEW |