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/message_loop.h" |
10 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
11 #include "media/base/filters.h" | 12 #include "media/base/filters.h" |
12 #include "media/filters/video_renderer_base.h" | 13 #include "media/filters/video_renderer_base.h" |
13 | 14 |
14 class X11VideoRenderer : public media::VideoRendererBase { | 15 class X11VideoRenderer : public media::VideoRendererBase { |
15 public: | 16 public: |
16 X11VideoRenderer(Display* display, Window window, MessageLoop* message_loop); | 17 X11VideoRenderer(Display* display, Window window, MessageLoop* message_loop); |
17 | 18 |
18 // This method is called to paint the current video frame to the assigned | 19 // This method is called to paint the current video frame to the assigned |
19 // window. | 20 // window. |
(...skipping 28 matching lines...) Expand all Loading... |
48 | 49 |
49 bool use_render_; | 50 bool use_render_; |
50 | 51 |
51 MessageLoop* glx_thread_message_loop_; | 52 MessageLoop* glx_thread_message_loop_; |
52 static X11VideoRenderer* instance_; | 53 static X11VideoRenderer* instance_; |
53 | 54 |
54 DISALLOW_COPY_AND_ASSIGN(X11VideoRenderer); | 55 DISALLOW_COPY_AND_ASSIGN(X11VideoRenderer); |
55 }; | 56 }; |
56 | 57 |
57 #endif // MEDIA_TOOLS_PLAYER_X11_X11_VIDEO_RENDERER_H_ | 58 #endif // MEDIA_TOOLS_PLAYER_X11_X11_VIDEO_RENDERER_H_ |
OLD | NEW |