OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ |
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // media::Demuxer implementation. | 48 // media::Demuxer implementation. |
49 virtual void Initialize(media::DemuxerHost* host, | 49 virtual void Initialize(media::DemuxerHost* host, |
50 const media::PipelineStatusCB& cb) OVERRIDE; | 50 const media::PipelineStatusCB& cb) OVERRIDE; |
51 virtual media::DemuxerStream* GetStream( | 51 virtual media::DemuxerStream* GetStream( |
52 media::DemuxerStream::Type type) OVERRIDE; | 52 media::DemuxerStream::Type type) OVERRIDE; |
53 virtual base::TimeDelta GetStartTime() const OVERRIDE; | 53 virtual base::TimeDelta GetStartTime() const OVERRIDE; |
54 | 54 |
55 // For RTCVideoDecoderBridgeTv to talk to RTCDemuxerStream. | 55 // For RTCVideoDecoderBridgeTv to talk to RTCDemuxerStream. |
56 void InitializeStream(const gfx::Size& size); | 56 void InitializeStream(const gfx::Size& size); |
57 void QueueBuffer(scoped_refptr<media::DecoderBuffer> buffer, | 57 void QueueBuffer(scoped_refptr<media::DecoderBuffer> buffer, |
58 const base::Closure& done_cb, | |
59 const gfx::Size& size); | 58 const gfx::Size& size); |
60 | 59 |
61 private: | 60 private: |
62 // All private variables are lock protected. | 61 // All private variables are lock protected. |
63 base::Lock lock_; | 62 base::Lock lock_; |
64 scoped_ptr<RTCVideoDecoderBridgeTv> decoder_; | 63 scoped_ptr<RTCVideoDecoderBridgeTv> decoder_; |
65 | 64 |
66 media::PipelineStatusCB init_cb_; | 65 media::PipelineStatusCB init_cb_; |
67 scoped_ptr<RTCDemuxerStream> stream_; | 66 scoped_ptr<RTCDemuxerStream> stream_; |
68 | 67 |
69 bool is_acquired_; | 68 bool is_acquired_; |
70 | 69 |
71 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactoryTv); | 70 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactoryTv); |
72 }; | 71 }; |
73 | 72 |
74 } // namespace content | 73 } // namespace content |
75 | 74 |
76 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ | 75 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ |
OLD | NEW |