Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: media/tools/player_x11/gl_video_renderer.h

Issue 6722026: Refactor: Move app/gfx/gl ==> ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try removing a dep. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/media.gyp ('k') | media/tools/player_x11/gl_video_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | media/tools/player_x11/gl_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698