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

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

Issue 1094553002: Revert "Speculative revert by sheriff" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_
6 #define MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/geometry/size.h"
12 #include "ui/gl/gl_bindings.h"
13
14 namespace media {
15 class VideoFrame;
16 }
17
18 class GlVideoRenderer : public base::RefCountedThreadSafe<GlVideoRenderer> {
19 public:
20 GlVideoRenderer(Display* display, Window window);
21
22 void Paint(const scoped_refptr<media::VideoFrame>& video_frame);
23
24 private:
25 friend class base::RefCountedThreadSafe<GlVideoRenderer>;
26 ~GlVideoRenderer();
27
28 // Initializes GL rendering for the given dimensions.
29 void Initialize(gfx::Size coded_size, gfx::Rect visible_rect);
30
31 Display* display_;
32 Window window_;
33
34 // GL context.
35 GLXContext gl_context_;
36
37 // 3 textures, one for each plane.
38 GLuint textures_[3];
39
40 DISALLOW_COPY_AND_ASSIGN(GlVideoRenderer);
41 };
42
43 #endif // MEDIA_TOOLS_PLAYER_X11_GL_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « media/tools/player_x11/data_source_logger.cc ('k') | media/tools/player_x11/gl_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698