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

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

Issue 2618173002: Revert of Reland [Mojo Video Capture] Replace method OnIncomingCapturedVideoFrame() with OnIncomingCapturedBuf (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 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 OnIncomingCapturedBufferExt( 68 void OnIncomingCapturedVideoFrame(
69 std::unique_ptr<Buffer> buffer, 69 std::unique_ptr<Buffer> buffer,
70 const VideoCaptureFormat& format, 70 scoped_refptr<media::VideoFrame> frame) override;
71 base::TimeTicks reference_time,
72 base::TimeDelta timestamp,
73 gfx::Rect visible_rect,
74 const VideoFrameMetadata& additional_metadata) override;
75 std::unique_ptr<Buffer> ResurrectLastOutputBuffer( 71 std::unique_ptr<Buffer> ResurrectLastOutputBuffer(
76 const gfx::Size& dimensions, 72 const gfx::Size& dimensions,
77 media::VideoPixelFormat format, 73 media::VideoPixelFormat format,
78 media::VideoPixelStorage storage, 74 media::VideoPixelStorage storage,
79 int new_frame_feedback_id) override; 75 int new_frame_feedback_id) override;
80 void OnError(const tracked_objects::Location& from_here, 76 void OnError(const tracked_objects::Location& from_here,
81 const std::string& reason) override; 77 const std::string& reason) override;
82 void OnLog(const std::string& message) override; 78 void OnLog(const std::string& message) override;
83 double GetBufferPoolUtilization() const override; 79 double GetBufferPoolUtilization() const override;
84 80
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 #endif // DCHECK_IS_ON() 126 #endif // DCHECK_IS_ON()
131 127
132 media::VideoPixelFormat last_captured_pixel_format_; 128 media::VideoPixelFormat last_captured_pixel_format_;
133 129
134 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 130 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
135 }; 131 };
136 132
137 } // namespace media 133 } // namespace media
138 134
139 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 135 #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