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

Unified Diff: content/renderer/media/rtc_video_encoder.h

Issue 1845563006: Make RTCVideoEncoder usable from non-postable thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/rtc_video_encoder.h
diff --git a/content/renderer/media/rtc_video_encoder.h b/content/renderer/media/rtc_video_encoder.h
index 4997ad298b0ea0225b9d6e6be4132725496c8ce1..bf8c28701f5250c21780e5126947b110b0b780a8 100644
--- a/content/renderer/media/rtc_video_encoder.h
+++ b/content/renderer/media/rtc_video_encoder.h
@@ -64,18 +64,9 @@ class CONTENT_EXPORT RTCVideoEncoder
class Impl;
friend class RTCVideoEncoder::Impl;
- // Return an encoded output buffer to WebRTC.
- void ReturnEncodedImage(scoped_ptr<webrtc::EncodedImage> image,
- int32_t bitstream_buffer_id,
- uint16_t picture_id);
-
- void NotifyError(int32_t error);
-
void RecordInitEncodeUMA(int32_t init_retval,
media::VideoCodecProfile profile);
- base::ThreadChecker thread_checker_;
-
// The video codec type, as reported to WebRTC.
const webrtc::VideoCodecType video_codec_type_;
@@ -85,9 +76,6 @@ class CONTENT_EXPORT RTCVideoEncoder
// Task runner that the video accelerator runs on.
const scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_;
- // webrtc::VideoEncoder encode complete callback.
- webrtc::EncodedImageCallback* encoded_image_callback_;
-
// The RTCVideoEncoder::Impl that does all the work.
scoped_refptr<Impl> impl_;
@@ -97,11 +85,6 @@ class CONTENT_EXPORT RTCVideoEncoder
// interface entry point is called.
int32_t impl_status_;
- // Weak pointer factory for posting back VEA::Client notifications to
- // RTCVideoEncoder.
- // NOTE: Weak pointers must be invalidated before all other member variables.
- base::WeakPtrFactory<RTCVideoEncoder> weak_factory_;
-
DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoder);
};
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_encoder.cc » ('j') | content/renderer/media/rtc_video_encoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698