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

Side by Side Diff: content/browser/renderer_host/media/video_capture_device_client.h

Issue 1826643003: Add frame refresh to VideoCaptureDevice, and buffer pool resurrection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE before commit Created 4 years, 9 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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const gfx::Size& dimensions, 53 const gfx::Size& dimensions,
54 media::VideoPixelFormat format, 54 media::VideoPixelFormat format,
55 media::VideoPixelStorage storage) override; 55 media::VideoPixelStorage storage) override;
56 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, 56 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer,
57 const media::VideoCaptureFormat& frame_format, 57 const media::VideoCaptureFormat& frame_format,
58 const base::TimeTicks& timestamp) override; 58 const base::TimeTicks& timestamp) override;
59 void OnIncomingCapturedVideoFrame( 59 void OnIncomingCapturedVideoFrame(
60 scoped_ptr<Buffer> buffer, 60 scoped_ptr<Buffer> buffer,
61 const scoped_refptr<media::VideoFrame>& frame, 61 const scoped_refptr<media::VideoFrame>& frame,
62 const base::TimeTicks& timestamp) override; 62 const base::TimeTicks& timestamp) override;
63 scoped_ptr<Buffer> ResurrectLastOutputBuffer(
64 const gfx::Size& dimensions,
65 media::VideoPixelFormat format,
66 media::VideoPixelStorage storage) override;
63 void OnError(const tracked_objects::Location& from_here, 67 void OnError(const tracked_objects::Location& from_here,
64 const std::string& reason) override; 68 const std::string& reason) override;
65 void OnLog(const std::string& message) override; 69 void OnLog(const std::string& message) override;
66 double GetBufferPoolUtilization() const override; 70 double GetBufferPoolUtilization() const override;
67 71
68 private: 72 private:
69 // Reserve output buffer into which I420 contents can be copied directly. 73 // Reserve output buffer into which I420 contents can be copied directly.
70 // The dimensions of the frame is described by |dimensions|, and requested 74 // The dimensions of the frame is described by |dimensions|, and requested
71 // output buffer format is specified by |storage|. The reserved output buffer 75 // output buffer format is specified by |storage|. The reserved output buffer
72 // is returned; and the pointer to Y plane is stored at [y_plane_data], U 76 // is returned; and the pointer to Y plane is stored at [y_plane_data], U
(...skipping 29 matching lines...) Expand all
102 106
103 media::VideoPixelFormat last_captured_pixel_format_; 107 media::VideoPixelFormat last_captured_pixel_format_;
104 108
105 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 109 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
106 }; 110 };
107 111
108 112
109 } // namespace content 113 } // namespace content
110 114
111 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 115 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698