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

Side by Side Diff: media/tools/player_x11/x11_video_renderer.h

Issue 6171009: Remove MessageLoop methods from Filter interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied more CR suggestions & removed message_loop() methods where possible. Created 9 years, 11 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 | « media/tools/player_x11/player_x11.cc ('k') | webkit/glue/webmediaplayer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_TOOLS_PLAYER_X11_X11_VIDEO_RENDERER_H_ 5 #ifndef MEDIA_TOOLS_PLAYER_X11_X11_VIDEO_RENDERER_H_
6 #define MEDIA_TOOLS_PLAYER_X11_X11_VIDEO_RENDERER_H_ 6 #define MEDIA_TOOLS_PLAYER_X11_X11_VIDEO_RENDERER_H_
7 7
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "media/base/filters.h" 11 #include "media/base/filters.h"
12 #include "media/filters/video_renderer_base.h" 12 #include "media/filters/video_renderer_base.h"
13 13
14 class MessageLoop;
15
14 class X11VideoRenderer : public media::VideoRendererBase { 16 class X11VideoRenderer : public media::VideoRendererBase {
15 public: 17 public:
16 X11VideoRenderer(Display* display, Window window, MessageLoop* message_loop); 18 X11VideoRenderer(Display* display, Window window, MessageLoop* message_loop);
17 19
18 // This method is called to paint the current video frame to the assigned 20 // This method is called to paint the current video frame to the assigned
19 // window. 21 // window.
20 void Paint(); 22 void Paint();
21 23
22 static X11VideoRenderer* instance() { return instance_; } 24 static X11VideoRenderer* instance() { return instance_; }
23 25
(...skipping 24 matching lines...) Expand all
48 50
49 bool use_render_; 51 bool use_render_;
50 52
51 MessageLoop* glx_thread_message_loop_; 53 MessageLoop* glx_thread_message_loop_;
52 static X11VideoRenderer* instance_; 54 static X11VideoRenderer* instance_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(X11VideoRenderer); 56 DISALLOW_COPY_AND_ASSIGN(X11VideoRenderer);
55 }; 57 };
56 58
57 #endif // MEDIA_TOOLS_PLAYER_X11_X11_VIDEO_RENDERER_H_ 59 #endif // MEDIA_TOOLS_PLAYER_X11_X11_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « media/tools/player_x11/player_x11.cc ('k') | webkit/glue/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698