OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "ui/gfx/gl/gl_bindings.h" | 10 #include "ui/gl/gl_bindings.h" |
11 | 11 |
12 class MessageLoop; | 12 class MessageLoop; |
13 | 13 |
14 namespace media { | 14 namespace media { |
15 class VideoFrame; | 15 class VideoFrame; |
16 } | 16 } |
17 | 17 |
18 class GlVideoRenderer : public base::RefCountedThreadSafe<GlVideoRenderer> { | 18 class GlVideoRenderer : public base::RefCountedThreadSafe<GlVideoRenderer> { |
19 public: | 19 public: |
20 GlVideoRenderer(Display* display, Window window); | 20 GlVideoRenderer(Display* display, Window window); |
(...skipping 14 matching lines...) Expand all Loading... |
35 // GL context. | 35 // GL context. |
36 GLXContext gl_context_; | 36 GLXContext gl_context_; |
37 | 37 |
38 // 3 textures, one for each plane. | 38 // 3 textures, one for each plane. |
39 GLuint textures_[3]; | 39 GLuint textures_[3]; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(GlVideoRenderer); | 41 DISALLOW_COPY_AND_ASSIGN(GlVideoRenderer); |
42 }; | 42 }; |
43 | 43 |
44 #endif // MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ | 44 #endif // MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_ |
OLD | NEW |