| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 std::unique_ptr<Buffer> ReserveOutputBuffer( | 54 std::unique_ptr<Buffer> ReserveOutputBuffer( |
| 55 const gfx::Size& dimensions, | 55 const gfx::Size& dimensions, |
| 56 media::VideoPixelFormat format, | 56 media::VideoPixelFormat format, |
| 57 media::VideoPixelStorage storage) override; | 57 media::VideoPixelStorage storage) override; |
| 58 void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer, | 58 void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer, |
| 59 const media::VideoCaptureFormat& frame_format, | 59 const media::VideoCaptureFormat& frame_format, |
| 60 base::TimeTicks reference_time, | 60 base::TimeTicks reference_time, |
| 61 base::TimeDelta timestamp) override; | 61 base::TimeDelta timestamp) override; |
| 62 void OnIncomingCapturedVideoFrame( | 62 void OnIncomingCapturedVideoFrame( |
| 63 std::unique_ptr<Buffer> buffer, | 63 std::unique_ptr<Buffer> buffer, |
| 64 const scoped_refptr<media::VideoFrame>& frame, | 64 const scoped_refptr<media::VideoFrame>& frame) override; |
| 65 base::TimeTicks reference_time) override; | |
| 66 std::unique_ptr<Buffer> ResurrectLastOutputBuffer( | 65 std::unique_ptr<Buffer> ResurrectLastOutputBuffer( |
| 67 const gfx::Size& dimensions, | 66 const gfx::Size& dimensions, |
| 68 media::VideoPixelFormat format, | 67 media::VideoPixelFormat format, |
| 69 media::VideoPixelStorage storage) override; | 68 media::VideoPixelStorage storage) override; |
| 70 void OnError(const tracked_objects::Location& from_here, | 69 void OnError(const tracked_objects::Location& from_here, |
| 71 const std::string& reason) override; | 70 const std::string& reason) override; |
| 72 void OnLog(const std::string& message) override; | 71 void OnLog(const std::string& message) override; |
| 73 double GetBufferPoolUtilization() const override; | 72 double GetBufferPoolUtilization() const override; |
| 74 | 73 |
| 75 private: | 74 private: |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 109 |
| 111 media::VideoPixelFormat last_captured_pixel_format_; | 110 media::VideoPixelFormat last_captured_pixel_format_; |
| 112 | 111 |
| 113 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); | 112 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 | 115 |
| 117 } // namespace content | 116 } // namespace content |
| 118 | 117 |
| 119 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 118 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
| OLD | NEW |