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