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

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

Issue 457733002: Support for H264 HW offload for webRTC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address some comments by posciak. Created 6 years, 4 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
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_decoder.h
diff --git a/content/renderer/media/rtc_video_decoder.h b/content/renderer/media/rtc_video_decoder.h
index bbc294afc8ebeb52d93d7addca5bdc4883c7d719..bfb5d96e9b9be20f55e62d479d6c650a4ca889dc 100644
--- a/content/renderer/media/rtc_video_decoder.h
+++ b/content/renderer/media/rtc_video_decoder.h
@@ -103,6 +103,7 @@ class CONTENT_EXPORT RTCVideoDecoder
FRIEND_TEST_ALL_PREFIXES(RTCVideoDecoderTest, IsFirstBufferAfterReset);
RTCVideoDecoder(
+ webrtc::VideoCodecType type,
const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories);
// Requests a buffer to be decoded by VDA.
@@ -151,7 +152,8 @@ class CONTENT_EXPORT RTCVideoDecoder
void ReusePictureBuffer(int64 picture_buffer_id);
// Create |vda_| on |vda_loop_proxy_|.
- void CreateVDA(media::VideoCodecProfile profile, base::WaitableEvent* waiter);
+ void CreateVDA(media::VideoCodecProfile profile,
+ base::WaitableEvent* waiter);
void DestroyTextures();
void DestroyVDA();
@@ -193,6 +195,9 @@ class CONTENT_EXPORT RTCVideoDecoder
// The hardware video decoder.
scoped_ptr<media::VideoDecodeAccelerator> vda_;
+ // The video codec type, as reported to WebRTC.
Pawel Osciak 2014/08/12 11:06:38 Nit s/to/by/ ?
hshi1 2014/08/12 18:08:22 Done.
+ const webrtc::VideoCodecType video_codec_type_;
+
// The size of the incoming video frames.
gfx::Size frame_size_;
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698