Chromium Code Reviews| 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_VT_VIDEO_DECODE_ACCELERATOR_H_ | |
| 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
|
scherkus (not reviewing)
2014/06/09 16:02:07
what's this used for?
sandersd (OOO until July 31)
2014/06/10 01:02:44
int32_t, but the include is implied by the fact th
| |
| 9 | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 #include "base/memory/weak_ptr.h" | |
| 12 #include "base/message_loop/message_loop.h" | |
| 13 #include "base/message_loop/message_loop_proxy.h" | |
| 14 #include "content/common/content_export.h" | |
| 15 #include "content/common/gpu/media/video_decode_accelerator_impl.h" | |
| 16 #include "ui/gl/gl_context_cgl.h" | |
| 17 | |
| 18 namespace content { | |
| 19 | |
| 20 class CONTENT_EXPORT VTVideoDecodeAccelerator | |
|
scherkus (not reviewing)
2014/06/09 16:02:07
do you need CONTENT_EXPORT yet? usually it's neede
scherkus (not reviewing)
2014/06/09 16:02:07
docs for the class
sandersd (OOO until July 31)
2014/06/10 01:02:45
Done.
sandersd (OOO until July 31)
2014/06/10 01:02:45
Done.
| |
| 21 : public VideoDecodeAcceleratorImpl, | |
| 22 public base::NonThreadSafe { | |
| 23 public: | |
| 24 explicit VTVideoDecodeAccelerator(CGLContextObj cgl_context); | |
| 25 virtual ~VTVideoDecodeAccelerator(); | |
| 26 | |
| 27 // VideoDecodeAcceleratorImpl implementation. | |
| 28 virtual bool Initialize( | |
| 29 media::VideoCodecProfile profile, | |
| 30 Client* client) OVERRIDE; | |
| 31 virtual void Decode(const media::BitstreamBuffer& bitstream) OVERRIDE; | |
| 32 virtual void AssignPictureBuffers( | |
| 33 const std::vector<media::PictureBuffer>& pictures) OVERRIDE; | |
| 34 virtual void ReusePictureBuffer(int32_t picture_id) OVERRIDE; | |
| 35 virtual void Flush() OVERRIDE; | |
| 36 virtual void Reset() OVERRIDE; | |
| 37 virtual void Destroy() OVERRIDE; | |
| 38 | |
| 39 private: | |
| 40 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; | |
|
scherkus (not reviewing)
2014/06/09 16:02:07
this should be the last member - feel free to copy
sandersd (OOO until July 31)
2014/06/10 01:02:44
Done.
| |
| 41 base::WeakPtr<VTVideoDecodeAccelerator> weak_this_; | |
| 42 scoped_refptr<base::MessageLoopProxy> loop_proxy_; | |
| 43 CGLContextObj cgl_context_; | |
| 44 media::VideoDecodeAccelerator::Client* client_; | |
| 45 | |
| 46 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); | |
| 47 }; | |
| 48 | |
| 49 } // namespace content | |
| 50 | |
| 51 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | |
| OLD | NEW |