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_GLES_VIDEO_RENDERER_H_ |
6 #define MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ | 6 #define MEDIA_TOOLS_PLAYER_X11_GLES_VIDEO_RENDERER_H_ |
7 | 7 |
8 #include <EGL/egl.h> | 8 #include <EGL/egl.h> |
9 #include <EGL/eglext.h> | 9 #include <EGL/eglext.h> |
10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
11 #include <GLES2/gl2ext.h> | 11 #include <GLES2/gl2ext.h> |
12 | 12 |
13 #include "base/lock.h" | 13 #include <utility> |
| 14 #include <vector> |
| 15 |
14 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
15 #include "media/base/filters.h" | 17 #include "media/base/filters.h" |
16 #include "media/base/video_frame.h" | 18 #include "media/base/video_frame.h" |
17 #include "media/filters/video_renderer_base.h" | 19 #include "media/filters/video_renderer_base.h" |
18 | 20 |
19 class GlesVideoRenderer : public media::VideoRendererBase { | 21 class GlesVideoRenderer : public media::VideoRendererBase { |
20 public: | 22 public: |
21 GlesVideoRenderer(Display* display, Window window, MessageLoop* message_loop); | 23 GlesVideoRenderer(Display* display, Window window, MessageLoop* message_loop); |
22 | 24 |
23 // This method is called to paint the current video frame to the assigned | 25 // This method is called to paint the current video frame to the assigned |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // 3 textures, one for each plane. | 71 // 3 textures, one for each plane. |
70 GLuint textures_[3]; | 72 GLuint textures_[3]; |
71 | 73 |
72 MessageLoop* glx_thread_message_loop_; | 74 MessageLoop* glx_thread_message_loop_; |
73 static GlesVideoRenderer* instance_; | 75 static GlesVideoRenderer* instance_; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(GlesVideoRenderer); | 77 DISALLOW_COPY_AND_ASSIGN(GlesVideoRenderer); |
76 }; | 78 }; |
77 | 79 |
78 #endif // MEDIA_TOOLS_PLAYER_X11_GLES_VIDEO_RENDERER_H_ | 80 #endif // MEDIA_TOOLS_PLAYER_X11_GLES_VIDEO_RENDERER_H_ |
OLD | NEW |