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_VIDEO_DECODE_FACTORY_OZONE_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_ |
| 7 |
| 8 #include "content/common/gpu/media/video_decode_accelerator_impl.h" |
| 9 |
| 10 namespace media { |
| 11 class BitstreamBuffer; |
| 12 class PictureBuffer; |
| 13 } |
| 14 |
| 15 // vignatti(TODO): description. |
| 16 namespace content { |
| 17 |
| 18 class VideoDecodeFactoryOzone |
| 19 : public VideoDecodeAcceleratorImpl { |
| 20 public: |
| 21 VideoDecodeFactoryOzone(); |
| 22 virtual ~VideoDecodeFactoryOzone(); |
| 23 |
| 24 // Returns the instance |
| 25 static VideoDecodeFactoryOzone* GetInstance(); |
| 26 |
| 27 // Sets the implementation delegate. Ownership is retained by the caller. |
| 28 static void SetInstance(VideoDecodeFactoryOzone* impl); |
| 29 |
| 30 // media::VideoDecodeAccelerator implementation. |
| 31 virtual bool Initialize(media::VideoCodecProfile profile, |
| 32 Client* client); |
| 33 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer); |
| 34 virtual void AssignPictureBuffers( |
| 35 const std::vector<media::PictureBuffer>& buffers); |
| 36 virtual void ReusePictureBuffer(int32 picture_buffer_id); |
| 37 virtual void Flush(); |
| 38 virtual void Reset(); |
| 39 virtual void Destroy(); |
| 40 |
| 41 private: |
| 42 static VideoDecodeFactoryOzone* impl_; // not owned |
| 43 }; |
| 44 |
| 45 } // namespace content |
| 46 |
| 47 #endif // CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_FACTORY_OZONE_H_ |
OLD | NEW |