Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Side by Side Diff: chrome/gpu/media/fake_gl_video_decode_engine.h

Issue 3335014: Added FakeGlVideoDecodeEngine to exercise the IPC protocol for hardware video decoding (Closed)
Patch Set: compile man... Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698