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

Side by Side 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, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/player/wtl_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file.
4
5 // Video renderer for media player.
6
7 #ifndef MEDIA_PLAYER_WTL_RENDERER_H_
8 #define MEDIA_PLAYER_WTL_RENDERER_H_
9
10 #include "media/filters/video_renderer_base.h"
11
12 class WtlVideoWindow;
13
14 class WtlVideoRenderer : public media::VideoRendererBase {
15 public:
16 explicit WtlVideoRenderer(WtlVideoWindow* window);
17 virtual bool OnInitialize(size_t width, size_t height);
18 virtual void OnPaintNeeded();
19 void GetCurrentFrame(scoped_refptr<media::VideoFrame>* frame_out);
20
21 static bool IsMediaFormatSupported(const media::MediaFormat& format) {
22 return media::VideoRendererBase::IsMediaFormatSupported(format);
23 }
24
25 private:
26 friend class scoped_refptr<WtlVideoRenderer>;
27 virtual ~WtlVideoRenderer() {}
28
29 WtlVideoWindow* window_;
30
31 DISALLOW_COPY_AND_ASSIGN(WtlVideoRenderer);
32 };
33
34 #endif // MEDIA_PLAYER_WTL_RENDERER_H_
35
OLDNEW
« 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