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

Unified Diff: media/player/wtl_renderer.h

Issue 99117: media player wtl_render - video renderer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « no previous file | media/player/wtl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/player/wtl_renderer.h
===================================================================
--- media/player/wtl_renderer.h (revision 0)
+++ media/player/wtl_renderer.h (revision 0)
@@ -0,0 +1,35 @@
+// Copyright (c) 2009 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.
+
+// Video renderer for media player.
+
+#ifndef MEDIA_PLAYER_WTL_RENDERER_H_
+#define MEDIA_PLAYER_WTL_RENDERER_H_
+
+#include "media/filters/video_renderer_base.h"
+
+class WtlVideoWindow;
+
+class WtlVideoRenderer : public media::VideoRendererBase {
+ public:
+ explicit WtlVideoRenderer(WtlVideoWindow* window);
+ virtual bool OnInitialize(size_t width, size_t height);
+ virtual void OnPaintNeeded();
+ void GetCurrentFrame(scoped_refptr<media::VideoFrame>* frame_out);
+
+ static bool IsMediaFormatSupported(const media::MediaFormat& format) {
+ return media::VideoRendererBase::IsMediaFormatSupported(format);
+ }
+
+ private:
+ friend class scoped_refptr<WtlVideoRenderer>;
+ virtual ~WtlVideoRenderer() {}
+
+ WtlVideoWindow* window_;
+
+ DISALLOW_COPY_AND_ASSIGN(WtlVideoRenderer);
+};
+
+#endif // MEDIA_PLAYER_WTL_RENDERER_H_
+
« no previous file with comments | « no previous file | media/player/wtl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698