OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_GPU_MEDIA_OZONE_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_OZONE_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "content/common/gpu/media/video_decode_accelerator_impl.h" |
| 10 #include "media/video/video_decode_accelerator.h" |
| 11 |
| 12 namespace content { |
| 13 // vignatti(TODO): add description |
| 14 class CONTENT_EXPORT OzoneVideoDecodeAccelerator |
| 15 : public VideoDecodeAcceleratorImpl { |
| 16 public: |
| 17 OzoneVideoDecodeAccelerator( |
| 18 const base::Callback<bool(void)>& make_context_current); |
| 19 virtual ~OzoneVideoDecodeAccelerator(); |
| 20 |
| 21 // media::VideoDecodeAccelerator implementation. |
| 22 virtual bool Initialize(media::VideoCodecProfile profile, |
| 23 Client* client) OVERRIDE; |
| 24 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; |
| 25 virtual void AssignPictureBuffers( |
| 26 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; |
| 27 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 28 virtual void Flush() OVERRIDE; |
| 29 virtual void Reset() OVERRIDE; |
| 30 virtual void Destroy() OVERRIDE; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(OzoneVideoDecodeAccelerator); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_COMMON_GPU_MEDIA_OZONE_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |