| Index: content/common/gpu/media/video_decode_factory_ozone.h
|
| diff --git a/content/common/gpu/media/video_decode_factory_ozone.h b/content/common/gpu/media/video_decode_factory_ozone.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4fa29e16151f15854959aa305b529927caedf200
|
| --- /dev/null
|
| +++ b/content/common/gpu/media/video_decode_factory_ozone.h
|
| @@ -0,0 +1,47 @@
|
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
|
| +#define CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
|
| +
|
| +#include "content/common/gpu/media/video_decode_accelerator_impl.h"
|
| +
|
| +namespace media {
|
| +class BitstreamBuffer;
|
| +class PictureBuffer;
|
| +}
|
| +
|
| +// vignatti(TODO): description.
|
| +namespace content {
|
| +
|
| +class VideoDecodeFactoryOzone
|
| + : public VideoDecodeAcceleratorImpl {
|
| + public:
|
| + VideoDecodeFactoryOzone();
|
| + virtual ~VideoDecodeFactoryOzone();
|
| +
|
| + // Returns the instance
|
| + static VideoDecodeFactoryOzone* GetInstance();
|
| +
|
| + // Sets the implementation delegate. Ownership is retained by the caller.
|
| + static void SetInstance(VideoDecodeFactoryOzone* impl);
|
| +
|
| + // media::VideoDecodeAccelerator implementation.
|
| + virtual bool Initialize(media::VideoCodecProfile profile,
|
| + Client* client);
|
| + virtual void Decode(const media::BitstreamBuffer& bitstream_buffer);
|
| + virtual void AssignPictureBuffers(
|
| + const std::vector<media::PictureBuffer>& buffers);
|
| + virtual void ReusePictureBuffer(int32 picture_buffer_id);
|
| + virtual void Flush();
|
| + virtual void Reset();
|
| + virtual void Destroy();
|
| +
|
| + private:
|
| + static VideoDecodeFactoryOzone* impl_; // not owned
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_
|
|
|