| Index: content/common/gpu/media/android_video_encode_accelerator.h
|
| diff --git a/content/common/gpu/media/android_video_encode_accelerator.h b/content/common/gpu/media/android_video_encode_accelerator.h
|
| index e519a278c7766288bca8872b5358e1255291b09c..76cc84f3473f6ffe9ccad6b87545c769a3f62940 100644
|
| --- a/content/common/gpu/media/android_video_encode_accelerator.h
|
| +++ b/content/common/gpu/media/android_video_encode_accelerator.h
|
| @@ -31,8 +31,7 @@ namespace content {
|
| class CONTENT_EXPORT AndroidVideoEncodeAccelerator
|
| : public media::VideoEncodeAccelerator {
|
| public:
|
| - explicit AndroidVideoEncodeAccelerator(
|
| - media::VideoEncodeAccelerator::Client* client);
|
| + AndroidVideoEncodeAccelerator();
|
| virtual ~AndroidVideoEncodeAccelerator();
|
|
|
| static std::vector<media::VideoEncodeAccelerator::SupportedProfile>
|
| @@ -42,7 +41,8 @@ class CONTENT_EXPORT AndroidVideoEncodeAccelerator
|
| virtual void Initialize(media::VideoFrame::Format format,
|
| const gfx::Size& input_visible_size,
|
| media::VideoCodecProfile output_profile,
|
| - uint32 initial_bitrate) OVERRIDE;
|
| + uint32 initial_bitrate,
|
| + Client* client) OVERRIDE;
|
| virtual void Encode(const scoped_refptr<media::VideoFrame>& frame,
|
| bool force_keyframe) OVERRIDE;
|
| virtual void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer)
|
| @@ -77,7 +77,7 @@ class CONTENT_EXPORT AndroidVideoEncodeAccelerator
|
|
|
| // VideoDecodeAccelerator::Client callbacks go here. Invalidated once any
|
| // error triggers.
|
| - base::WeakPtrFactory<Client> client_ptr_factory_;
|
| + scoped_ptr<base::WeakPtrFactory<Client> > client_ptr_factory_;
|
|
|
| scoped_ptr<media::VideoCodecBridge> media_codec_;
|
|
|
|
|