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

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

Issue 2566983007: [Mojo Video Capture] Replace method OnIncomingCapturedVideoFrame with OnIncomingCapturedBufferExt (Closed)
Patch Set: mcasas comments Created 4 years 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 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 MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_
6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 6 #define MEDIA_CAPTURE_VIDEO_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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 base::TimeDelta timestamp, 58 base::TimeDelta timestamp,
59 int frame_feedback_id = 0) override; 59 int frame_feedback_id = 0) override;
60 std::unique_ptr<Buffer> ReserveOutputBuffer(const gfx::Size& dimensions, 60 std::unique_ptr<Buffer> ReserveOutputBuffer(const gfx::Size& dimensions,
61 media::VideoPixelFormat format, 61 media::VideoPixelFormat format,
62 media::VideoPixelStorage storage, 62 media::VideoPixelStorage storage,
63 int frame_feedback_id) override; 63 int frame_feedback_id) override;
64 void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer, 64 void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer,
65 const VideoCaptureFormat& format, 65 const VideoCaptureFormat& format,
66 base::TimeTicks reference_time, 66 base::TimeTicks reference_time,
67 base::TimeDelta timestamp) override; 67 base::TimeDelta timestamp) override;
68 void OnIncomingCapturedVideoFrame( 68 void OnIncomingCapturedBufferExt(
69 std::unique_ptr<Buffer> buffer, 69 std::unique_ptr<Buffer> buffer,
70 scoped_refptr<media::VideoFrame> frame) override; 70 const VideoCaptureFormat& format,
71 base::TimeTicks reference_time,
72 base::TimeDelta timestamp,
73 gfx::Rect visible_rect,
74 const VideoFrameMetadata& additional_metadata) override;
71 std::unique_ptr<Buffer> ResurrectLastOutputBuffer( 75 std::unique_ptr<Buffer> ResurrectLastOutputBuffer(
72 const gfx::Size& dimensions, 76 const gfx::Size& dimensions,
73 media::VideoPixelFormat format, 77 media::VideoPixelFormat format,
74 media::VideoPixelStorage storage, 78 media::VideoPixelStorage storage,
75 int new_frame_feedback_id) override; 79 int new_frame_feedback_id) override;
76 void OnError(const tracked_objects::Location& from_here, 80 void OnError(const tracked_objects::Location& from_here,
77 const std::string& reason) override; 81 const std::string& reason) override;
78 void OnLog(const std::string& message) override; 82 void OnLog(const std::string& message) override;
79 double GetBufferPoolUtilization() const override; 83 double GetBufferPoolUtilization() const override;
80 84
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 #endif // DCHECK_IS_ON() 130 #endif // DCHECK_IS_ON()
127 131
128 media::VideoPixelFormat last_captured_pixel_format_; 132 media::VideoPixelFormat last_captured_pixel_format_;
129 133
130 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 134 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
131 }; 135 };
132 136
133 } // namespace media 137 } // namespace media
134 138
135 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 139 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « media/capture/video/video_capture_device.h ('k') | media/capture/video/video_capture_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698