OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" | |
9 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
10 #include "media/base/filters.h" | 9 #include "media/base/filters.h" |
11 #include "media/filters/video_renderer_base.h" | 10 #include "media/filters/video_renderer_base.h" |
| 11 #include "ui/gfx/gl/gl_bindings.h" |
12 | 12 |
13 class GlVideoRenderer : public media::VideoRendererBase { | 13 class GlVideoRenderer : public media::VideoRendererBase { |
14 public: | 14 public: |
15 GlVideoRenderer(Display* display, Window window, MessageLoop* message_loop); | 15 GlVideoRenderer(Display* display, Window window, MessageLoop* message_loop); |
16 | 16 |
17 // 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 |
18 // window. | 18 // window. |
19 void Paint(); | 19 void Paint(); |
20 | 20 |
21 static GlVideoRenderer* instance() { return instance_; } | 21 static GlVideoRenderer* instance() { return instance_; } |
(...skipping 22 matching lines...) Expand all Loading... |
44 // 3 textures, one for each plane. | 44 // 3 textures, one for each plane. |
45 GLuint textures_[3]; | 45 GLuint textures_[3]; |
46 | 46 |
47 MessageLoop* glx_thread_message_loop_; | 47 MessageLoop* glx_thread_message_loop_; |
48 static GlVideoRenderer* instance_; | 48 static GlVideoRenderer* instance_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(GlVideoRenderer); | 50 DISALLOW_COPY_AND_ASSIGN(GlVideoRenderer); |
51 }; | 51 }; |
52 | 52 |
53 #endif // MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ | 53 #endif // MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ |
OLD | NEW |