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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/gpu/media/fake_gl_video_decode_engine.h
diff --git a/chrome/gpu/media/fake_gl_video_decode_engine.h b/chrome/gpu/media/fake_gl_video_decode_engine.h
new file mode 100644
index 0000000000000000000000000000000000000000..c7baaaff1d7f4fda9c85a36be9f43f54d944f317
--- /dev/null
+++ b/chrome/gpu/media/fake_gl_video_decode_engine.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_GPU_MEDIA_FAKE_GL_VIDEO_DECODE_ENGINE_H_
+#define CHROME_GPU_MEDIA_FAKE_GL_VIDEO_DECODE_ENGINE_H_
+
+#include "base/scoped_ptr.h"
+#include "media/video/video_decode_engine.h"
+
+namespace media {
+class VideoFrame;
+} // namespace media
+
+class FakeGlVideoDecodeEngine : public media::VideoDecodeEngine {
+ public:
+ FakeGlVideoDecodeEngine();
+ virtual ~FakeGlVideoDecodeEngine();
+
+ virtual void Initialize(
+ MessageLoop* message_loop,
+ media::VideoDecodeEngine::EventHandler* event_handler,
+ const media::VideoCodecConfig& config);
+
+ virtual void Uninitialize();
+ virtual void Flush();
+ virtual void Seek();
+ virtual void ConsumeVideoSample(scoped_refptr<media::Buffer> buffer);
+ virtual void ProduceVideoFrame(scoped_refptr<media::VideoFrame> frame);
+
+ private:
+ int width_;
+ int height_;
+ media::VideoDecodeEngine::EventHandler* handler_;
+};
scherkus (not reviewing) 2010/09/13 07:19:23 DISALLOW_COPY_AND_ASSIGN
+
+#endif // CHROME_GPU_MEDIA_FAKE_GL_VIDEO_DECODE_ENGINE_H_

Powered by Google App Engine
This is Rietveld 408576698