Chromium Code Reviews| 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_FAKE_GL_VIDEO_DECODE_ENGINE_H_ | |
| 6 #define CHROME_GPU_MEDIA_FAKE_GL_VIDEO_DECODE_ENGINE_H_ | |
| 7 | |
| 8 #include "base/scoped_ptr.h" | |
| 9 #include "media/video/video_decode_engine.h" | |
| 10 | |
| 11 namespace media { | |
| 12 class VideoFrame; | |
| 13 } // namespace media | |
| 14 | |
| 15 class FakeGlVideoDecodeEngine : public media::VideoDecodeEngine { | |
| 16 public: | |
| 17 FakeGlVideoDecodeEngine(); | |
| 18 virtual ~FakeGlVideoDecodeEngine(); | |
| 19 | |
| 20 virtual void Initialize( | |
| 21 MessageLoop* message_loop, | |
| 22 media::VideoDecodeEngine::EventHandler* event_handler, | |
| 23 const media::VideoCodecConfig& config); | |
| 24 | |
| 25 virtual void Uninitialize(); | |
| 26 virtual void Flush(); | |
| 27 virtual void Seek(); | |
| 28 virtual void ConsumeVideoSample(scoped_refptr<media::Buffer> buffer); | |
| 29 virtual void ProduceVideoFrame(scoped_refptr<media::VideoFrame> frame); | |
| 30 | |
| 31 private: | |
| 32 int width_; | |
| 33 int height_; | |
| 34 media::VideoDecodeEngine::EventHandler* handler_; | |
| 35 }; | |
|
scherkus (not reviewing)
2010/09/13 07:19:23
DISALLOW_COPY_AND_ASSIGN
| |
| 36 | |
| 37 #endif // CHROME_GPU_MEDIA_FAKE_GL_VIDEO_DECODE_ENGINE_H_ | |
| OLD | NEW |