| Index: content/renderer/pepper/pepper_video_decoder_host.h
|
| diff --git a/content/renderer/pepper/pepper_video_decoder_host.h b/content/renderer/pepper/pepper_video_decoder_host.h
|
| index e76f95c4bf66a4891202f1f88a5279a8798a0370..bc44fe848dffe9778ae846b106db13647c9c5ca0 100644
|
| --- a/content/renderer/pepper/pepper_video_decoder_host.h
|
| +++ b/content/renderer/pepper/pepper_video_decoder_host.h
|
| @@ -10,9 +10,11 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/containers/hash_tables.h"
|
| +#include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/scoped_vector.h"
|
| #include "content/common/content_export.h"
|
| +#include "gpu/command_buffer/common/mailbox.h"
|
| #include "media/video/video_decode_accelerator.h"
|
| #include "ppapi/c/pp_codecs.h"
|
| #include "ppapi/host/host_message_context.h"
|
| @@ -28,7 +30,6 @@
|
| class PPB_Graphics3D_Impl;
|
| class RendererPpapiHost;
|
| class RenderViewImpl;
|
| -class VideoDecoderShim;
|
|
|
| class CONTENT_EXPORT PepperVideoDecoderHost
|
| : public ppapi::host::ResourceHost,
|
| @@ -49,8 +50,6 @@
|
| const ppapi::host::ReplyMessageContext reply_context;
|
| };
|
|
|
| - friend class VideoDecoderShim;
|
| -
|
| // ResourceHost implementation.
|
| virtual int32_t OnResourceMessageReceived(
|
| const IPC::Message& msg,
|
| @@ -62,10 +61,10 @@
|
| uint32 texture_target) OVERRIDE;
|
| virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE;
|
| virtual void PictureReady(const media::Picture& picture) OVERRIDE;
|
| + virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE;
|
| + virtual void NotifyFlushDone() OVERRIDE;
|
| virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE;
|
| - virtual void NotifyFlushDone() OVERRIDE;
|
| virtual void NotifyResetDone() OVERRIDE;
|
| - virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE;
|
|
|
| int32_t OnHostMsgInitialize(ppapi::host::HostMessageContext* context,
|
| const ppapi::HostResource& graphics_context,
|
| @@ -86,19 +85,11 @@
|
| int32_t OnHostMsgFlush(ppapi::host::HostMessageContext* context);
|
| int32_t OnHostMsgReset(ppapi::host::HostMessageContext* context);
|
|
|
| - // These methods are needed by VideoDecodeShim, to look like a
|
| - // VideoDecodeAccelerator.
|
| - void OnInitializeComplete(int32_t result);
|
| - const uint8_t* DecodeIdToAddress(uint32_t decode_id);
|
| - void RequestTextures(uint32 requested_num_of_buffers,
|
| - const gfx::Size& dimensions,
|
| - uint32 texture_target,
|
| - const std::vector<gpu::Mailbox>& mailboxes);
|
| -
|
| // Non-owning pointer.
|
| RendererPpapiHost* renderer_ppapi_host_;
|
|
|
| scoped_ptr<media::VideoDecodeAccelerator> decoder_;
|
| + scoped_refptr<PPB_Graphics3D_Impl> graphics3d_;
|
|
|
| // A vector holding our shm buffers, in sync with a similar vector in the
|
| // resource. We use a buffer's index in these vectors as its id on both sides
|
| @@ -115,8 +106,6 @@
|
|
|
| ppapi::host::ReplyMessageContext flush_reply_context_;
|
| ppapi::host::ReplyMessageContext reset_reply_context_;
|
| - // Only used when in software fallback mode.
|
| - ppapi::host::ReplyMessageContext initialize_reply_context_;
|
|
|
| bool initialized_;
|
|
|
|
|