| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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 CHROME_GPU_MEDIA_MFT_ANGLE_VIDEO_DEVICE_H_ | |
| 6 #define CHROME_GPU_MEDIA_MFT_ANGLE_VIDEO_DEVICE_H_ | |
| 7 | |
| 8 #include "base/scoped_comptr_win.h" | |
| 9 #include "chrome/gpu/media/gpu_video_device.h" | |
| 10 | |
| 11 struct IDirect3DDevice9; | |
| 12 extern "C" const GUID IID_IDirect3DDevice9; | |
| 13 | |
| 14 namespace media { | |
| 15 class VideoFrame; | |
| 16 } // namespace media | |
| 17 | |
| 18 // This class is used to provide hardware video device, video frames and | |
| 19 // allow video frames to be uploaded to their final render target. | |
| 20 // | |
| 21 // This specifically serves MftH264DecodeEngine in the context of ANGLE. | |
| 22 class MftAngleVideoDevice : public GpuVideoDevice { | |
| 23 public: | |
| 24 MftAngleVideoDevice(); | |
| 25 virtual ~MftAngleVideoDevice() {} | |
| 26 | |
| 27 // GpuVideoDevice implementation. | |
| 28 virtual void* GetDevice(); | |
| 29 virtual bool CreateVideoFrameFromGlTextures( | |
| 30 size_t width, size_t height, media::VideoFrame::Format format, | |
| 31 const std::vector<media::VideoFrame::GlTexture>& textures, | |
| 32 scoped_refptr<media::VideoFrame>* frame); | |
| 33 virtual void ReleaseVideoFrame( | |
| 34 const scoped_refptr<media::VideoFrame>& frame); | |
| 35 virtual bool ConvertToVideoFrame(void* buffer, | |
| 36 scoped_refptr<media::VideoFrame> frame); | |
| 37 | |
| 38 private: | |
| 39 ScopedComPtr<IDirect3DDevice9, &IID_IDirect3DDevice9> device_; | |
| 40 }; | |
| 41 | |
| 42 #endif // CHROME_GPU_MEDIA_MFT_ANGLE_VIDEO_DEVICE_H_ | |
| OLD | NEW |