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_GL_VIDEO_RENDERER_H_ | 5 #ifndef MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ |
6 #define MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ | 6 #define MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ |
7 | 7 |
8 #include "app/gfx/gl/gl_bindings.h" | 8 #include "app/gfx/gl/gl_bindings.h" |
9 #include "base/lock.h" | |
10 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
11 #include "media/base/filters.h" | 10 #include "media/base/filters.h" |
12 #include "media/filters/video_renderer_base.h" | 11 #include "media/filters/video_renderer_base.h" |
13 | 12 |
14 class GlVideoRenderer : public media::VideoRendererBase { | 13 class GlVideoRenderer : public media::VideoRendererBase { |
15 public: | 14 public: |
16 GlVideoRenderer(Display* display, Window window, MessageLoop* message_loop); | 15 GlVideoRenderer(Display* display, Window window, MessageLoop* message_loop); |
17 | 16 |
18 // This method is called to paint the current video frame to the assigned | 17 // This method is called to paint the current video frame to the assigned |
19 // window. | 18 // window. |
(...skipping 25 matching lines...) Expand all Loading... |
45 // 3 textures, one for each plane. | 44 // 3 textures, one for each plane. |
46 GLuint textures_[3]; | 45 GLuint textures_[3]; |
47 | 46 |
48 MessageLoop* glx_thread_message_loop_; | 47 MessageLoop* glx_thread_message_loop_; |
49 static GlVideoRenderer* instance_; | 48 static GlVideoRenderer* instance_; |
50 | 49 |
51 DISALLOW_COPY_AND_ASSIGN(GlVideoRenderer); | 50 DISALLOW_COPY_AND_ASSIGN(GlVideoRenderer); |
52 }; | 51 }; |
53 | 52 |
54 #endif // MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ | 53 #endif // MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ |
OLD | NEW |