OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_TOOLS_SHADER_BENCH_GL_PAINTER_H_ | |
6 #define MEDIA_TOOLS_SHADER_BENCH_GL_PAINTER_H_ | |
7 | |
8 #include "app/gfx/gl/gl_context.h" | |
9 #include "base/scoped_ptr.h" | |
10 #include "media/base/video_frame.h" | |
11 #include "media/tools/shader_bench/painter.h" | |
12 | |
13 class GLPainter : public Painter { | |
Alpha Left Google
2010/11/15 20:43:51
Looking into Painter I found it's all related to G
| |
14 public: | |
15 GLPainter(); | |
16 virtual ~GLPainter(); | |
17 virtual void Initialize(int width, int height); | |
18 virtual void Paint(scoped_refptr<media::VideoFrame> video_frame); | |
19 virtual void SetGLContext(gfx::GLContext* context); | |
Alpha Left Google
2010/11/15 20:43:51
Painter class also has a lot of GL stuff in it, ma
| |
20 private: | |
21 gfx::GLContext* context_; | |
22 GLuint program_id_; | |
23 GLuint textures_[3]; | |
24 }; | |
25 | |
26 #endif // MEDIA_TOOLS_SHADER_BENCH_GL_PAINTER_H_ | |
OLD | NEW |