| Index: content/common/gpu/media/ozone_video_decode_accelerator.h
|
| diff --git a/content/common/gpu/media/ozone_video_decode_accelerator.h b/content/common/gpu/media/ozone_video_decode_accelerator.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e46718fb2cda67d104e6e84d0c8aeacf90523ee4
|
| --- /dev/null
|
| +++ b/content/common/gpu/media/ozone_video_decode_accelerator.h
|
| @@ -0,0 +1,37 @@
|
| +// 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_OZONE_VIDEO_DECODE_ACCELERATOR_H_
|
| +#define CONTENT_COMMON_GPU_MEDIA_OZONE_VIDEO_DECODE_ACCELERATOR_H_
|
| +
|
| +#include "content/common/content_export.h"
|
| +#include "content/common/gpu/media/video_decode_accelerator_impl.h"
|
| +#include "media/video/video_decode_accelerator.h"
|
| +
|
| +namespace content {
|
| +// vignatti(TODO): add description
|
| +class CONTENT_EXPORT OzoneVideoDecodeAccelerator
|
| + : public VideoDecodeAcceleratorImpl {
|
| + public:
|
| + OzoneVideoDecodeAccelerator(
|
| + const base::Callback<bool(void)>& make_context_current);
|
| + virtual ~OzoneVideoDecodeAccelerator();
|
| +
|
| + // media::VideoDecodeAccelerator implementation.
|
| + virtual bool Initialize(media::VideoCodecProfile profile,
|
| + Client* client) OVERRIDE;
|
| + virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;
|
| + virtual void AssignPictureBuffers(
|
| + const std::vector<media::PictureBuffer>& buffers) OVERRIDE;
|
| + virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
|
| + virtual void Flush() OVERRIDE;
|
| + virtual void Reset() OVERRIDE;
|
| + virtual void Destroy() OVERRIDE;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(OzoneVideoDecodeAccelerator);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_COMMON_GPU_MEDIA_OZONE_VIDEO_DECODE_ACCELERATOR_H_
|
|
|