OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |