Chromium Code Reviews| 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_BENCHMARK_GPU_PAINTER_H_ | |
| 6 #define MEDIA_TOOLS_BENCHMARK_GPU_PAINTER_H_ | |
| 7 | |
| 8 #include "app/gfx/gl/gl_bindings.h" | |
| 9 #include "app/gfx/gl/gl_context.h" | |
| 10 #include "app/gfx/gl/gl_implementation.h" | |
| 11 #include "media/tools/shader_bench/painter.h" | |
| 12 | |
| 13 // Class that renders video frames to a window via GPU. | |
| 14 class GPUPainter : public Painter { | |
| 15 public: | |
| 16 GPUPainter(); | |
| 17 virtual void SetGLContext(gfx::GLContext* context); | |
| 18 protected: | |
|
Alpha Left Google
2010/11/29 20:06:13
Empty line before protected.
| |
| 19 static GLuint LoadShader(gfx::GLContext* context, unsigned type, | |
| 20 const char* shader_source); | |
| 21 static GLuint CreateShaderProgram(gfx::GLContext* context, | |
| 22 const char* vertex_shader_source, | |
| 23 const char* fragment_shader_source); | |
| 24 gfx::GLContext* context_; | |
| 25 | |
| 26 DISALLOW_COPY_AND_ASSIGN(GPUPainter); | |
| 27 }; | |
| 28 | |
| 29 #endif // MEDIA_TOOLS_BENCHMARK_GPU_PAINTER_H_ | |
| OLD | NEW |